Boost logo

Boost-Commit :

From: troy_at_[hidden]
Date: 2008-05-18 01:01:13


Author: troy
Date: 2008-05-18 01:01:12 EDT (Sun, 18 May 2008)
New Revision: 45477
URL: http://svn.boost.org/trac/boost/changeset/45477

Log:
make the per-project install of include/boost optional, as not all projects are configured this way yet and CPack whines about it. 'make package' now succeeds (on the mac at least)
Text files modified:
   branches/CMake/Boost_1_35_0/tools/build/CMake/BoostCore.cmake | 16 +++++++++-------
   1 files changed, 9 insertions(+), 7 deletions(-)

Modified: branches/CMake/Boost_1_35_0/tools/build/CMake/BoostCore.cmake
==============================================================================
--- branches/CMake/Boost_1_35_0/tools/build/CMake/BoostCore.cmake (original)
+++ branches/CMake/Boost_1_35_0/tools/build/CMake/BoostCore.cmake 2008-05-18 01:01:12 EDT (Sun, 18 May 2008)
@@ -127,13 +127,15 @@
       # Add this module's include directory
       include_directories("${Boost_SOURCE_DIR}/libs/${libname}/include")
 
- # Install this module's headers
- install(DIRECTORY include/boost
- DESTINATION ${BOOST_HEADER_DIR}
- COMPONENT ${ULIBNAME}_headers
- PATTERN "CVS" EXCLUDE
- REGEX ".svn" EXCLUDE)
-
+ if (IS_DIRECTORY include/boost)
+ # Install this module's headers
+ install(DIRECTORY include/boost
+ DESTINATION ${BOOST_HEADER_DIR}
+ COMPONENT ${ULIBNAME}_headers
+ PATTERN "CVS" EXCLUDE
+ REGEX ".svn" EXCLUDE)
+ endif (IS_DIRECTORY include/boost)
+
       # Add the appropriate variables to make this library's headers a separate component.
       set(THIS_PROJECT_COMPONENTS ${THIS_PROJECT_COMPONENTS} ${ULIBNAME}_headers)
       set(CPACK_COMPONENT_BOOST_${ULIBNAME}_HEADERS_DISPLAY_NAME "Header files")


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk