diff options
author | Simon Hausmann <simon.hausmann@qt.io> | 2019-06-06 09:03:48 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@qt.io> | 2019-06-06 09:08:38 +0000 |
commit | ac16a1228c0d16012658a97f9de4825b5a2ae97f (patch) | |
tree | c043ee8cbb1249dcebf36ba5b871a7f0403d1845 /CMakeLists.txt | |
parent | 4e907f1f62e2dc5676aeb48b99494709b7bf9d50 (diff) |
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>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 6be7a6edcb..841ea3fa03 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) |