|
Boost-Commit : |
From: troy_at_[hidden]
Date: 2008-06-04 21:37:32
Author: troy
Date: 2008-06-04 21:37:32 EDT (Wed, 04 Jun 2008)
New Revision: 46142
URL: http://svn.boost.org/trac/boost/changeset/46142
Log:
use SOURCE_DIR => CURRENT_SOURCE_DIR... makes this directory 'relocatable'
Text files modified:
branches/CMake/release/libs/CMakeLists.txt | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
Modified: branches/CMake/release/libs/CMakeLists.txt
==============================================================================
--- branches/CMake/release/libs/CMakeLists.txt (original)
+++ branches/CMake/release/libs/CMakeLists.txt 2008-06-04 21:37:32 EDT (Wed, 04 Jun 2008)
@@ -5,7 +5,7 @@
# return a list of directories that we should add_subdirectory()
macro(BOOST_COLLECT_SUBPROJECT_DIRECTORY_NAMES varname filename)
file(GLOB BOOST_LIBRARY_CMAKE_FILES
- RELATIVE "${CMAKE_SOURCE_DIR}/libs" "*/${filename}")
+ RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "*/${filename}")
foreach(BOOST_LIB_CMAKE_FILE ${BOOST_LIBRARY_CMAKE_FILES})
get_filename_component(BOOST_LIB_DIR ${BOOST_LIB_CMAKE_FILE} PATH)
set(${varname} ${${varname}} ${BOOST_LIB_DIR})
@@ -22,8 +22,9 @@
# Find all of the subdirectories with .cmake files in them. These are
# the libraries with dependencies.
boost_collect_subproject_directory_names(BOOST_MODULE_DIRS "module.cmake")
+
foreach(subdir ${BOOST_MODULE_DIRS})
- include("${CMAKE_SOURCE_DIR}/libs/${subdir}/module.cmake")
+ include("${CMAKE_CURRENT_SOURCE_DIR}/${subdir}/module.cmake")
endforeach(subdir)
# Find all of the subdirectories with CMakeLists.txt files in
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