summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CMP0026
diff options
context:
space:
mode:
authorDeniz Bahadir <dbahadir@benocs.com>2020-09-30 19:11:14 (GMT)
committerDeniz Bahadir <dbahadir@benocs.com>2020-11-24 16:54:54 (GMT)
commitca4ce458a3a14889b1018198b6580ddddfb039a5 (patch)
treeb9317dd5ea89209ffbc1f9b2dfa0313e09a8b691 /Tests/RunCMake/CMP0026
parent0eb30f175e61a013db301ab1be242dd497be4add (diff)
downloadCMake-ca4ce458a3a14889b1018198b6580ddddfb039a5.zip
CMake-ca4ce458a3a14889b1018198b6580ddddfb039a5.tar.gz
CMake-ca4ce458a3a14889b1018198b6580ddddfb039a5.tar.bz2
GENERATED prop: Check CMP0118 policy and warn in certain situations
* Adding tests for CMP0118 being unset (aka set to `WARN`). * Adjusting the (unrelated) RunCMake.CMP0026 test to set CMP0118 to `NEW`, * Adjusting the (unrelated) RunCMake.Ninja test to set CMP0118 to `OLD`. * Adjusting the (unrelated) RunCMake.FileAPI test to set CMP0118 to `OLD`. Note: Setting CMP0118 to `NEW` and modifying the `GENERATED` property with `set_property` or `set_source_files_properties` will currently NOT set that property because the implementation is still to come.
Diffstat (limited to 'Tests/RunCMake/CMP0026')
-rw-r--r--Tests/RunCMake/CMP0026/LOCATION-and-TARGET_OBJECTS.cmake2
-rw-r--r--Tests/RunCMake/CMP0026/clear-cached-information.cmake2
2 files changed, 2 insertions, 2 deletions
diff --git a/Tests/RunCMake/CMP0026/LOCATION-and-TARGET_OBJECTS.cmake b/Tests/RunCMake/CMP0026/LOCATION-and-TARGET_OBJECTS.cmake
index 3d8eb73..ee5ed5b 100644
--- a/Tests/RunCMake/CMP0026/LOCATION-and-TARGET_OBJECTS.cmake
+++ b/Tests/RunCMake/CMP0026/LOCATION-and-TARGET_OBJECTS.cmake
@@ -1,4 +1,4 @@
-
+cmake_policy(SET CMP0118 NEW)
enable_language(CXX)
add_library(foo OBJECT empty.cpp)
diff --git a/Tests/RunCMake/CMP0026/clear-cached-information.cmake b/Tests/RunCMake/CMP0026/clear-cached-information.cmake
index dd2dd72..9916948 100644
--- a/Tests/RunCMake/CMP0026/clear-cached-information.cmake
+++ b/Tests/RunCMake/CMP0026/clear-cached-information.cmake
@@ -1,4 +1,4 @@
-
+cmake_policy(SET CMP0118 NEW)
enable_language(C)
cmake_policy(SET CMP0026 OLD)