From e7fdf4829ee9043162b43a85b69e24e377cd1638 Mon Sep 17 00:00:00 2001 From: Gregor Jasny Date: Tue, 10 Jan 2017 21:37:27 +0100 Subject: [PATCH] Also add includes to TARGETS_INST_DEST --- CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 44931e24..3029f267 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -48,6 +48,7 @@ SET (TARGETS_INST_DEST RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} ) # Look for dependent/required libraries @@ -552,7 +553,6 @@ IF (CARES_SHARED) IF (CARES_INSTALL) INSTALL (TARGETS ${PROJECT_NAME} EXPORT ${PROJECT_NAME}-targets ${TARGETS_INST_DEST} - INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} ) ENDIF () SET (STATIC_SUFFIX "_static") @@ -589,7 +589,6 @@ IF (CARES_STATIC) IF (CARES_INSTALL) INSTALL (TARGETS ${LIBNAME} EXPORT ${PROJECT_NAME}-targets ${TARGETS_INST_DEST} - INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} ) ENDIF ()