From 870ab8439223ea39916136f2caabbe1fc9fa43a4 Mon Sep 17 00:00:00 2001 From: Brian Maher Date: Fri, 29 Jan 2010 21:39:54 -0800 Subject: When building on OS-X with CMake version 2.8.0 with an explicit CMAKE_INSTALL_PREFIX definition, the header files don't get installed, unless I make this change. It appears to me that CMake won't traverse into the api/ directory since that directory does not terminate in *.h. If you try to change the pattern to api/*.h, then the api directory still doesn't match. However, since only the "exported" headers are in the api directory, we might as well just tell cmake to install it all. I can only guess that this must be a bug with CMake version 2.8.0. --- src/CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 6dae429..2d9a6cb 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -79,6 +79,5 @@ INCLUDE_DIRECTORIES(${incDir}/..) IF(NOT WIN32) INSTALL(TARGETS yajl LIBRARY DESTINATION lib) INSTALL(TARGETS yajl_s ARCHIVE DESTINATION lib) - INSTALL(DIRECTORY api/ DESTINATION include/yajl - FILES_MATCHING PATTERN "*.h") + INSTALL(DIRECTORY api/ DESTINATION include/yajl) ENDIF() -- cgit v1.2.1