Stephen Kelly wrote:
> Your options are:
Option 3 is to depend on CMake 2.8.9+ and port away from the use of
target_link_libraries with LINK_INTEFACE_LIBRARIES and use LINK_PUBLIC and
LINK_PRIVATE instead:
@@ -17,10 +18,9 @@ cmake_policy(SET CMP0022 OLD)
kde4_add_library(sublime SHARED ${sublime_LIB_SRCS})
cmake_policy(SET CMP0022 OLD)
target_link_libraries(sublime
+ LINK_PRIVATE
${KDE4_KDEUI_LIBS}
- ${KDE4_KPARTS_LIBS})
-cmake_policy(SET CMP0022 OLD)
-target_link_libraries(sublime LINK_INTERFACE_LIBRARIES
+ LINK_PUBLIC
${KDE4_KPARTS_LIBS})
Thanks,
Steve.
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers various services to support the CMake community. For more
information on each offering, please visit:
CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake