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/dir-in-macro-include.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/dir-in-macro-include.cmake')
-rw-r--r-- | Tests/RunCMake/PolicyScope/dir-in-macro-include.cmake | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/RunCMake/PolicyScope/dir-in-macro-include.cmake b/Tests/RunCMake/PolicyScope/dir-in-macro-include.cmake new file mode 100644 index 0000000..fd326f1 --- /dev/null +++ b/Tests/RunCMake/PolicyScope/dir-in-macro-include.cmake @@ -0,0 +1,6 @@ + +enable_language(CXX) + +# This does not affect dir1 despite being set before the add_subdirectory. +cmake_policy(SET CMP0044 NEW) +add_subdirectory(dir1) |