diff options
author | Stephen Kelly <steveire@gmail.com> | 2013-06-10 14:20:22 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2013-06-10 14:50:20 (GMT) |
commit | 77ff352aa76e4b5e8b739b3098aa98b14acba8d6 (patch) | |
tree | 097ca79f82c65979901734254200cb2be48dc746 /Tests/ExportImport/Export | |
parent | 8a3b5bede8c8fc16b7b7b25d7e665e8936de04ee (diff) | |
download | CMake-77ff352aa76e4b5e8b739b3098aa98b14acba8d6.zip CMake-77ff352aa76e4b5e8b739b3098aa98b14acba8d6.tar.gz CMake-77ff352aa76e4b5e8b739b3098aa98b14acba8d6.tar.bz2 |
Generate INTERFACE_COMPILE_OPTIONS on export.
This was missing from commit 80ca9c4b (Add COMPILE_OPTIONS target
property., 2013-05-16).
Diffstat (limited to 'Tests/ExportImport/Export')
-rw-r--r-- | Tests/ExportImport/Export/CMakeLists.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Tests/ExportImport/Export/CMakeLists.txt b/Tests/ExportImport/Export/CMakeLists.txt index e3f23b8..efecd03 100644 --- a/Tests/ExportImport/Export/CMakeLists.txt +++ b/Tests/ExportImport/Export/CMakeLists.txt @@ -162,7 +162,6 @@ set_property(TARGET testLibRequired APPEND PROPERTY $<BUILD_INTERFACE:BuildOnly_DEFINE> $<INSTALL_INTERFACE:InstallOnly_DEFINE> ) - include(GenerateExportHeader) add_subdirectory(renamed) @@ -201,6 +200,11 @@ set_property(TARGET testSharedLibRequired PROPERTY INTERFACE_CUSTOM_STRING testcontent ) +set_property(TARGET testSharedLibRequired APPEND PROPERTY + INTERFACE_COMPILE_OPTIONS + $<$<CXX_COMPILER_ID:GNU>:-DCUSTOM_COMPILE_OPTION> +) + add_library(testSharedLibDepends SHARED testSharedLibDepends.cpp) set_property(TARGET testSharedLibDepends APPEND PROPERTY |