From: Steve Gerbino Date: Sun, 25 Sep 2016 18:59:38 +0000 (-0400) Subject: Forget DESTINATION in CMake install command X-Git-Tag: json-c-0.13-20171207~120^2~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ab7c09dc8e9b58504dd155cc9f654ef049fbe338;p=json-c Forget DESTINATION in CMake install command --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 34aee29..c2ff492 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -64,4 +64,4 @@ install(TARGETS json-c ARCHIVE DESTINATION lib) install(DIRECTORY . DESTINATION ${CMAKE_INSTALL_PREFIX}/include FILES_MATCHING PATTERN "*.h") -install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/include FILES_MATCHING PATTERN "*.h") +install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/include DESTINATION ${CMAKE_INSTALL_PREFIX}/include FILES_MATCHING PATTERN "*.h")