diff options
author | Stephen Kelly <steveire@gmail.com> | 2011-11-25 01:18:26 +0100 |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2011-11-25 01:18:26 +0100 |
commit | 4c2ffd7066970560f49d8d28c0035c114f333b7c (patch) | |
tree | a5c7cf8473746c2ccd20858703057bf693a20328 /modules/ECMQtFramework.cmake | |
parent | 0cf9c3c11d65cae585039d87e858adbe934dad5b (diff) | |
download | extra-cmake-modules-4c2ffd7066970560f49d8d28c0035c114f333b7c.tar.gz extra-cmake-modules-4c2ffd7066970560f49d8d28c0035c114f333b7c.tar.bz2 |
Set a variable to clear the link interface libraries.
This will only have an effect in CMake 2.8.7, but is harmless until
then.
Diffstat (limited to 'modules/ECMQtFramework.cmake')
-rw-r--r-- | modules/ECMQtFramework.cmake | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/ECMQtFramework.cmake b/modules/ECMQtFramework.cmake index 3d9eefa9..a87246d2 100644 --- a/modules/ECMQtFramework.cmake +++ b/modules/ECMQtFramework.cmake @@ -80,6 +80,10 @@ # the preprocessor. The version file must be installed by the user. # # 15) The FeatureSummary module is included. +# +# 16) The CMAKE_LINK_INTERFACE_LIBRARIES variable is set to empty. This means that the library targets created +# will have an empty link interface unless the LINK_INTERFACE_LIBRARIES or the LINK_PUBLIC keyword +# to target_link_libraries are used. # We need to make sure this file is included before Qt found. # Otherwise QT_USE_IMPORTED_TARGETS would have no effect. @@ -94,6 +98,9 @@ include(GenerateExportHeader) add_compiler_export_flags() +# This will only have an effect in CMake 2.8.7 +set(CMAKE_LINK_INTERFACE_LIBRARIES "") + # create coverage build type set(CMAKE_CONFIGURATION_TYPES ${CMAKE_CONFIGURATION_TYPES} Coverage) if(${CMAKE_VERSION} VERSION_GREATER 2.8.2) |