diff options
author | Brad King <brad.king@kitware.com> | 2016-01-15 14:49:21 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-01-15 14:56:01 (GMT) |
commit | e5cbec14a5aec9203bd0e29fa0172fa00c97e521 (patch) | |
tree | cedcfbad7239f23cf9cb1bce44c0f52e17895c92 /Tests/ExportImport | |
parent | 0ca122fcb3df3331a6daaeec090bd967daa0f2b9 (diff) | |
download | CMake-e5cbec14a5aec9203bd0e29fa0172fa00c97e521.zip CMake-e5cbec14a5aec9203bd0e29fa0172fa00c97e521.tar.gz CMake-e5cbec14a5aec9203bd0e29fa0172fa00c97e521.tar.bz2 |
Tests: Use CMP0022 NEW behavior in some ExportImport cases
Diffstat (limited to 'Tests/ExportImport')
-rw-r--r-- | Tests/ExportImport/Export/CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Tests/ExportImport/Export/CMakeLists.txt b/Tests/ExportImport/Export/CMakeLists.txt index 9b6a543..9c50d6c 100644 --- a/Tests/ExportImport/Export/CMakeLists.txt +++ b/Tests/ExportImport/Export/CMakeLists.txt @@ -130,10 +130,13 @@ set_property(TARGET testLibCycleA PROPERTY LINK_INTERFACE_MULTIPLICITY 3) add_library(testLibNoSONAME SHARED testLibNoSONAME.c) set_property(TARGET testLibNoSONAME PROPERTY NO_SONAME 1) +cmake_policy(PUSH) +cmake_policy(SET CMP0022 NEW) # Test exporting dependent libraries into different exports add_library(testLibRequired testLibRequired.c) add_library(testLibDepends testLibDepends.c) target_link_libraries(testLibDepends LINK_PUBLIC testLibRequired) +cmake_policy(POP) macro(add_include_lib _libName) file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/${_libName}.c" "/* no content */\n") |