Boost logo

Boost-Commit :

From: troy_at_[hidden]
Date: 2007-05-27 12:01:39


Author: troy
Date: 2007-05-27 12:01:37 EDT (Sun, 27 May 2007)
New Revision: 4316
URL: http://svn.boost.org/trac/boost/changeset/4316

Log:

fix: #define to FALSE doesn't work, need them undefined in not found (duh)

Text files modified:
   sandbox-branches/boost-cmake/boost_1_34_0/libs/config/test/CMakeLists.txt | 5 +++--
   1 files changed, 3 insertions(+), 2 deletions(-)

Modified: sandbox-branches/boost-cmake/boost_1_34_0/libs/config/test/CMakeLists.txt
==============================================================================
--- sandbox-branches/boost-cmake/boost_1_34_0/libs/config/test/CMakeLists.txt (original)
+++ sandbox-branches/boost-cmake/boost_1_34_0/libs/config/test/CMakeLists.txt 2007-05-27 12:01:37 EDT (Sun, 27 May 2007)
@@ -11,7 +11,6 @@
   file(READ ${CMAKE_CURRENT_SOURCE_DIR}/${what}.ipp SRC)
   check_cxx_source_compiles("${SRC} int main(int, char**) { }" tmp)
   set(${var} ${tmp})
- message(STATUS " ${var}=${tmp}")
 endmacro(boost_configure what)
 
 file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/main.cpp "int main(int, char**) { }")
@@ -28,7 +27,9 @@
 
 set(vars "BOOST_HAS_PTHREAD_YIELD")
 foreach(var ${vars})
- add_definitions(-D${var}=${${var}})
+ if(${var})
+ add_definitions(-D${var})
+ endif(${var})
 endforeach(var ${vars})
 
 boost_test_run(config_info)


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