Prevent accidental conflicts with external cmake configuration files
Make sure to prepend our own paths instead of appending, as we'd like cmake to search there first. Change-Id: I0caea3a2654fbb07d5843f255cc35fca8892e19d Reviewed-by: Qt CMake Build Bot Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
parent
4e907f1f62
commit
ac16a1228c
@ -8,14 +8,14 @@ project(QtBase
|
||||
)
|
||||
|
||||
## Add some paths to check for cmake modules:
|
||||
list(APPEND CMAKE_MODULE_PATH
|
||||
list(PREPEND CMAKE_MODULE_PATH
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/cmake"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/3rdparty/extra-cmake-modules/find-modules"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/3rdparty/kwin"
|
||||
)
|
||||
|
||||
## Find the build internals package.
|
||||
list(APPEND CMAKE_PREFIX_PATH
|
||||
list(PREPEND CMAKE_PREFIX_PATH
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/cmake"
|
||||
)
|
||||
find_package(QtBuildInternals CMAKE_FIND_ROOT_PATH_BOTH)
|
||||
|
Loading…
Reference in New Issue
Block a user