diff options
author | Brad King <brad.king@kitware.com> | 2013-07-16 18:08:50 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-07-16 18:08:50 (GMT) |
commit | 295a42c96cc98585530c105d3b59a01be7187f9f (patch) | |
tree | 1e7a7b3b40830c15d71637b8fc7bdb671d7af56a /Tests/ExportImport/Export | |
parent | 574fec97fd011ea2899abdd05d97ea66f0faa063 (diff) | |
download | CMake-295a42c96cc98585530c105d3b59a01be7187f9f.zip CMake-295a42c96cc98585530c105d3b59a01be7187f9f.tar.gz CMake-295a42c96cc98585530c105d3b59a01be7187f9f.tar.bz2 |
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.
Diffstat (limited to 'Tests/ExportImport/Export')
-rw-r--r-- | Tests/ExportImport/Export/CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
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 "$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR};${CMAKE_CURRENT_SOURCE_DIR}>" "$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/include/cmp0022>" |