Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r73489 - sandbox/tools/profile_templates2
From: dsaritz_at_[hidden]
Date: 2011-08-02 08:26:57


Author: psiha
Date: 2011-08-02 08:26:57 EDT (Tue, 02 Aug 2011)
New Revision: 73489
URL: http://svn.boost.org/trac/boost/changeset/73489

Log:
Fixed build errors.
Excluded the template.profiler target from default builds.
Text files modified:
   sandbox/tools/profile_templates2/profiler.cmake | 6 ++++--
   1 files changed, 4 insertions(+), 2 deletions(-)

Modified: sandbox/tools/profile_templates2/profiler.cmake
==============================================================================
--- sandbox/tools/profile_templates2/profiler.cmake (original)
+++ sandbox/tools/profile_templates2/profiler.cmake 2011-08-02 08:26:57 EDT (Tue, 02 Aug 2011)
@@ -14,11 +14,12 @@
 ################################################################################
 # Add the target to build profiler
 ################################################################################
-find_file(PROFILER_PATH profiler ${CMAKE_MODULE_PATH})
+find_path( PROFILER_PATH profiler.cmake ${CMAKE_MODULE_PATH} )
 
 include_directories( ${Boost_INCLUDE_DIRS} )
 add_executable(
     template.profiler
+ EXCLUDE_FROM_ALL
     ${PROFILER_PATH}/src/filter.cpp
     ${PROFILER_PATH}/src/filter.hpp
     ${PROFILER_PATH}/src/postprocess.cpp
@@ -28,6 +29,7 @@
     ${PROFILER_PATH}/src/profiler.cpp
 )
 set_property( TARGET template.profiler PROPERTY RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/tools )
+set_property( TARGET template.profiler PROPERTY EXCLUDE_FROM_DEFAULT_BUILD 1 )
 if ( MSVC )
     # A workaround for Xpressive stack overflows
     set_property( TARGET template.profiler APPEND PROPERTY LINK_FLAGS /STACK:32000000 )
@@ -43,7 +45,7 @@
     if(CMAKE_GENERATOR MATCHES "Make")
         set( profiler_cxx_flags ${CMAKE_CXX_FLAGS_${CMAKE_BUILD_TYPE}} )
     else()
- set( profiler_cxx_flags ${CMAKE_CXX_F LAGS_DEBUG} )
+ set( profiler_cxx_flags ${CMAKE_CXX_FLAGS_DEBUG} )
     endif()
   
     # Suppress linking.


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