diff options
author | Stephen Kelly <steveire@gmail.com> | 2013-06-10 11:21:14 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2013-07-02 15:03:53 (GMT) |
commit | 4f7ceb56d1077e5639ca0a60f664a72d61ee4b9e (patch) | |
tree | b70a5a9e7bcbc6e776f0f0e969e8e864336ac7da /Tests/ExportImport/Export | |
parent | 340535156d1ccd3a8e180ab2fcbf87e613ef51aa (diff) | |
download | CMake-4f7ceb56d1077e5639ca0a60f664a72d61ee4b9e.zip CMake-4f7ceb56d1077e5639ca0a60f664a72d61ee4b9e.tar.gz CMake-4f7ceb56d1077e5639ca0a60f664a72d61ee4b9e.tar.bz2 |
Test non-IMPORTED libraries in the INTERFACE of IMPORTED libraries.
If a non-IMPORTED library is added to the INTERFACE_LINK_LIBRARIES
of a IMPORTED target, the non-IMPORTED target needs to become a
target dependency and link dependency of the consuming target.
This is already the case since commit 30962029 (Make targets depend
on the link interface of their dependees, 2012-12-26), and fixed in
the parent commit, so test that it works.
Diffstat (limited to 'Tests/ExportImport/Export')
-rw-r--r-- | Tests/ExportImport/Export/CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Tests/ExportImport/Export/CMakeLists.txt b/Tests/ExportImport/Export/CMakeLists.txt index e3f23b8..395fd59 100644 --- a/Tests/ExportImport/Export/CMakeLists.txt +++ b/Tests/ExportImport/Export/CMakeLists.txt @@ -185,6 +185,9 @@ set_property(TARGET testSharedLibRequired APPEND PROPERTY INTERFACE_INCLUDE_DIRECTORIES "$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/include/testSharedLibRequired>" "$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR};${CMAKE_CURRENT_SOURCE_DIR}>" ) +set_property(TARGET testSharedLibRequired APPEND PROPERTY + INTERFACE_COMPILE_DEFINITIONS USING_TESTSHAREDLIBREQUIRED +) set_property(TARGET testSharedLibRequired APPEND PROPERTY COMPATIBLE_INTERFACE_BOOL CUSTOM_PROP |