From ba675f1ecc472d00244344f128c124ee4b323faf Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 14 Jan 2020 15:25:25 -0500 Subject: 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. --- Tests/ExportImport/Export/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) 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) -- cgit v0.12