summaryrefslogtreecommitdiffstats
path: root/Tests/ExportImport
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-01-14 20:25:25 (GMT)
committerBrad King <brad.king@kitware.com>2020-01-14 20:27:07 (GMT)
commitba675f1ecc472d00244344f128c124ee4b323faf (patch)
treea3bffc9b15e216fad262bb18540fdf73ba1d622a /Tests/ExportImport
parent710371ca2f5032462e8dc352da869834bb421261 (diff)
downloadCMake-ba675f1ecc472d00244344f128c124ee4b323faf.zip
CMake-ba675f1ecc472d00244344f128c124ee4b323faf.tar.gz
CMake-ba675f1ecc472d00244344f128c124ee4b323faf.tar.bz2
Tests: Enable CMP0022 in ExportImport out-of-dir linking case
Since out-of-dir linking is enabled by CMP0079, which is newer than CMP0022, it is likely that both will be set in practice when out-of-dir linking is used.
Diffstat (limited to 'Tests/ExportImport')
-rw-r--r--Tests/ExportImport/Export/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/Tests/ExportImport/Export/CMakeLists.txt b/Tests/ExportImport/Export/CMakeLists.txt
index 7c81aea..387fe6b 100644
--- a/Tests/ExportImport/Export/CMakeLists.txt
+++ b/Tests/ExportImport/Export/CMakeLists.txt
@@ -156,6 +156,7 @@ target_link_libraries(testLibDepends PRIVATE testStaticLibRequiredPrivate)
cmake_policy(POP)
cmake_policy(PUSH)
+cmake_policy(SET CMP0022 NEW)
cmake_policy(SET CMP0079 NEW)
add_library(TopDirLib STATIC testTopDirLib.c)
add_subdirectory(SubDirLinkA)