diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-08-01 05:16:40 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-08-01 05:18:21 (GMT) |
commit | f0005bb484bc2b85a169ef7816e33d8e2f16e109 (patch) | |
tree | 027a0ad00762790b7a49c1742864c9a1b6f20ba3 /Tests/RunCMake/PolicyScope/parent-dir-generate-time.cmake | |
parent | 6c3d0e9a6bf88a03442acf1f0bc1ef1575779d46 (diff) | |
download | CMake-f0005bb484bc2b85a169ef7816e33d8e2f16e109.zip CMake-f0005bb484bc2b85a169ef7816e33d8e2f16e109.tar.gz CMake-f0005bb484bc2b85a169ef7816e33d8e2f16e109.tar.bz2 |
Tests: Verify generate-time policy scope behavior.
If some day there are no policies checked through the makefile at generate time,
this can be fixed.
Diffstat (limited to 'Tests/RunCMake/PolicyScope/parent-dir-generate-time.cmake')
-rw-r--r-- | Tests/RunCMake/PolicyScope/parent-dir-generate-time.cmake | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/RunCMake/PolicyScope/parent-dir-generate-time.cmake b/Tests/RunCMake/PolicyScope/parent-dir-generate-time.cmake new file mode 100644 index 0000000..a0842f7 --- /dev/null +++ b/Tests/RunCMake/PolicyScope/parent-dir-generate-time.cmake @@ -0,0 +1,7 @@ + +enable_language(CXX) + +add_subdirectory(dir1) + +# This affects dir1 despite being set after the add_subdirectory. +cmake_policy(SET CMP0044 NEW) |