summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Maher <maherb@brimworks.com>2010-01-29 21:39:54 -0800
committerBrian Maher <maherb@brimworks.com>2010-01-30 21:20:57 -0800
commit870ab8439223ea39916136f2caabbe1fc9fa43a4 (patch)
treee2208abc251206210ae620f39ab47c5df2aebc9a
parentb0eeb6cb0c4aeb6009b9eaa03fc599513f9a4268 (diff)
downloadyajl-870ab8439223ea39916136f2caabbe1fc9fa43a4.tar.gz
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.
-rw-r--r--src/CMakeLists.txt3
1 files changed, 1 insertions, 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()