From 376fe10aeaba4402aac0e93ed36897f3a97b6578 Mon Sep 17 00:00:00 2001 From: Alex Merry Date: Sat, 26 Apr 2014 12:09:00 +0100 Subject: Use KF5_INCLUDE_INSTALL_DIR and KF5_INSTALL_TARGETS_DEFAULT_ARGS This is instead of INCLUDE_INSTALL_DIR and INSTALL_TARGETS_DEFAULT_ARGS, which will lose the "KF5" suffix from the include path. --- src/core/CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/core') diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index 0b1136bc..9d0cdc79 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -24,7 +24,7 @@ target_compile_definitions(KF5ConfigCore KCONF_UPDATE_INSTALL_LOCATION="${CMAKE_INSTALL_PREFIX}/${LIBEXEC_INSTALL_DIR}/$" ) -target_include_directories(KF5ConfigCore INTERFACE "$") +target_include_directories(KF5ConfigCore INTERFACE "$") target_link_libraries(KF5ConfigCore PUBLIC Qt5::Core) if(WIN32) @@ -52,12 +52,12 @@ ecm_generate_headers(KConfigCore_HEADERS REQUIRED_HEADERS KConfigCore_HEADERS ) -install(TARGETS KF5ConfigCore EXPORT KF5ConfigTargets ${INSTALL_TARGETS_DEFAULT_ARGS}) +install(TARGETS KF5ConfigCore EXPORT KF5ConfigTargets ${KF5_INSTALL_TARGETS_DEFAULT_ARGS}) install(FILES ${CMAKE_CURRENT_BINARY_DIR}/kconfigcore_export.h ${KConfigCore_HEADERS} - DESTINATION ${INCLUDE_INSTALL_DIR}/KConfigCore COMPONENT Devel + DESTINATION ${KF5_INCLUDE_INSTALL_DIR}/KConfigCore COMPONENT Devel ) include(ECMGeneratePriFile) -- cgit v1.2.1