Commit 215ba2cf authored by Andreas Cord-Landwehr's avatar Andreas Cord-Landwehr
Browse files

Avoid CMake warnings for policy CMP0022.

This change requires CMake to be at least 2.8.9.
parent c6770681
...@@ -34,8 +34,11 @@ set( learnerprofile_LIB_SRCS ...@@ -34,8 +34,11 @@ set( learnerprofile_LIB_SRCS
kde4_add_library( learnerprofile SHARED ${learnerprofile_LIB_SRCS} ) kde4_add_library( learnerprofile SHARED ${learnerprofile_LIB_SRCS} )
target_link_libraries( learnerprofile target_link_libraries(
${KDE4_KDECORE_LIBS} ${QT_QTSQL_LIBRARY} learnerprofile
LINK_PRIVATE
${KDE4_KDECORE_LIBS}
${QT_QTSQL_LIBRARY}
) )
set_target_properties( learnerprofile set_target_properties( learnerprofile
......
...@@ -158,8 +158,9 @@ kde4_add_ui_files(artikulateCore_SRCS ...@@ -158,8 +158,9 @@ kde4_add_ui_files(artikulateCore_SRCS
kde4_add_kcfg_files(artikulateCore_SRCS settings.kcfgc) kde4_add_kcfg_files(artikulateCore_SRCS settings.kcfgc)
kde4_add_library(artikulatecore SHARED ${artikulateCore_SRCS}) kde4_add_library(artikulatecore SHARED ${artikulateCore_SRCS})
target_link_libraries(artikulatecore target_link_libraries(artikulatecore
learnerprofile LINK_PRIVATE
${artikulateCoreTargetLibs} learnerprofile
${artikulateCoreTargetLibs}
) )
set_target_properties(artikulatecore set_target_properties(artikulatecore
PROPERTIES VERSION ${GENERIC_LIB_VERSION} PROPERTIES VERSION ${GENERIC_LIB_VERSION}
...@@ -200,8 +201,9 @@ kde4_add_ui_files(artikulate_SRCS ...@@ -200,8 +201,9 @@ kde4_add_ui_files(artikulate_SRCS
kde4_add_kcfg_files(artikulate_SRCS settings.kcfgc) kde4_add_kcfg_files(artikulate_SRCS settings.kcfgc)
kde4_add_executable(artikulate ${artikulate_SRCS}) kde4_add_executable(artikulate ${artikulate_SRCS})
target_link_libraries(artikulate target_link_libraries(artikulate
learnerprofile LINK_PRIVATE
${artikulateTargetLibs} learnerprofile
${artikulateTargetLibs}
) )
install(FILES artikulate.kcfg DESTINATION ${KCFG_INSTALL_DIR}) install(FILES artikulate.kcfg DESTINATION ${KCFG_INSTALL_DIR})
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment