From 7f0ba3b1ffc1f47e9798b824b9ff235b16b58fb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Sun, 20 Mar 2011 17:24:34 +0100 Subject: [PATCH] Fix header install rule. --- library/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/library/CMakeLists.txt b/library/CMakeLists.txt index 4e5be3402..826576259 100644 --- a/library/CMakeLists.txt +++ b/library/CMakeLists.txt @@ -198,7 +198,9 @@ if(BUILD_DFHACK_DEVEL) install(TARGETS dfhack ARCHIVE DESTINATION ${DFHACK_DEVLIB_DESTINATION}) endif() - install(DIRECTORY include + # note the ending '/'. This means *constents* of the directory are installed + # without the '/', the directory itself is installed + install(DIRECTORY include/ DESTINATION ${DFHACK_INCLUDES_DESTINATION} FILES_MATCHING PATTERN "*.h" ) #linux: include endif()