diff options
author | Alexey Edelev <alexey.edelev@qt.io> | 2023-04-12 15:04:14 +0200 |
---|---|---|
committer | Alexey Edelev <alexey.edelev@qt.io> | 2023-04-24 14:20:25 +0200 |
commit | f3c10280f59d35fbf0862e6e353602e7aa8ef901 (patch) | |
tree | 06af7491abdf9743014e3392a1ea1189ce470c97 /cmake/QtBuildInternals/QtStandaloneTestTemplateProject/CMakeLists.txt | |
parent | a92c202b49777696cbc64003f6292e6b61952140 (diff) |
Introduce the qt_internal_project_setup macro
The macro sets the required CMake variables and policies and
should be called right after the
find_package(Qt6 COMPONENTS BuildInternals... call to make sure that
the subsequent code adopt all the required policies.
Pick-to: 6.5
Task-number: QTBUG-112685
Change-Id: I9f93f728ee4d8ae7743db9fffafa26025c76dcf2
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'cmake/QtBuildInternals/QtStandaloneTestTemplateProject/CMakeLists.txt')
-rw-r--r-- | cmake/QtBuildInternals/QtStandaloneTestTemplateProject/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/QtBuildInternals/QtStandaloneTestTemplateProject/CMakeLists.txt b/cmake/QtBuildInternals/QtStandaloneTestTemplateProject/CMakeLists.txt index 3de43f5885..09c4dad4bb 100644 --- a/cmake/QtBuildInternals/QtStandaloneTestTemplateProject/CMakeLists.txt +++ b/cmake/QtBuildInternals/QtStandaloneTestTemplateProject/CMakeLists.txt @@ -6,7 +6,7 @@ project(qt_single_test VERSION 6.0.0 LANGUAGES C CXX ASM) find_package(Qt6 REQUIRED COMPONENTS BuildInternals Core) -include(${CMAKE_CURRENT_LIST_DIR}/Main.cmake) +include(${CMAKE_CURRENT_LIST_DIR}/Main.cmake NO_POLICY_SCOPE) # Get the absolute path of the passed-in project dir, relative to the current working directory # of the calling script, rather than relative to this source directory. |