From 295a42c96cc98585530c105d3b59a01be7187f9f Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 16 Jul 2013 14:08:50 -0400 Subject: Fix ExportImport test cmp0022NEW build on Watcom The test uses generate_export_header(cmp0022OLD ...) to generate the cmp0022_export.h header used by both cmp0022OLD and cmp0022NEW. In the latter the _EXPORTS symbol does not match what the header expects so the library does not export anything. The Watcom linker does not like to create shared libraries that do not export any symbols. Fix this by setting the DEFINE_SYMBOL property on cmp0022NEW to match that of cmp0022OLD as the header expects. --- 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 da15d62..000e350 100644 --- a/Tests/ExportImport/Export/CMakeLists.txt +++ b/Tests/ExportImport/Export/CMakeLists.txt @@ -240,6 +240,7 @@ target_include_directories(cmp0022OLD PUBLIC ) cmake_policy(SET CMP0022 NEW) add_library(cmp0022NEW SHARED cmp0022_vs6_1.cpp) +set_property(TARGET cmp0022NEW PROPERTY DEFINE_SYMBOL cmp0022OLD_EXPORTS) target_include_directories(cmp0022NEW PUBLIC "$" "$/include/cmp0022>" -- cgit v0.12