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/dir1 | |
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/dir1')
-rw-r--r-- | Tests/RunCMake/PolicyScope/dir1/CMakeLists.txt | 5 | ||||
-rw-r--r-- | Tests/RunCMake/PolicyScope/dir1/foo.cpp | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/Tests/RunCMake/PolicyScope/dir1/CMakeLists.txt b/Tests/RunCMake/PolicyScope/dir1/CMakeLists.txt new file mode 100644 index 0000000..16bcb36 --- /dev/null +++ b/Tests/RunCMake/PolicyScope/dir1/CMakeLists.txt @@ -0,0 +1,5 @@ + + +add_library(foo STATIC foo.cpp) +string(TOLOWER ${CMAKE_CXX_COMPILER_ID} compiler_id) +target_compile_definitions(foo PRIVATE Foo=$<CXX_COMPILER_ID:${compiler_id}>) diff --git a/Tests/RunCMake/PolicyScope/dir1/foo.cpp b/Tests/RunCMake/PolicyScope/dir1/foo.cpp new file mode 100644 index 0000000..766b775 --- /dev/null +++ b/Tests/RunCMake/PolicyScope/dir1/foo.cpp @@ -0,0 +1,5 @@ + +int main() +{ + return 0; +} |