open-license-manager
2014-10-15 3750f651dd3937ec87c46c81cfb2a465aafdb800
build/modules/add_boost.cmake
@@ -158,7 +158,6 @@
   endif()
   execute_process(COMMAND ${CMAKE_COMMAND} -E make_directory ${BOOST_ROOT}/Build)
   #ADD_BOOST_STATIC_RUNTIME is a parsed function parameter
   if(ADD_BOOST_STATIC_RUNTIME)
      set(RUNTIME_LINK "static")
@@ -221,6 +220,7 @@
   elseif(UNIX)
     list(APPEND b2Args variant=release cxxflags=-fPIC cxxflags=-std=c++11 -sNO_BZIP2=1 --layout=tagged)
     # Need to configure the toolset based on whatever version CMAKE_CXX_COMPILER is
     message(STATUS "cmake compiler version ${CMAKE_CXX_COMPILER_VERSION}")
     string(REGEX MATCH "[0-9]+\\.[0-9]+" ToolsetVer "${CMAKE_CXX_COMPILER_VERSION}")
     if(${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang")
      list(APPEND b2Args toolset=clang-${ToolsetVer})
@@ -259,10 +259,13 @@
     else(MSVC)
         set(OUTPUT_FILE ${BOOST_ROOT}/stage/lib/libboost_${libName}-mt${BOOST_LIB_SUFFIX}.${LINUX_LIB_EXTENSION})
     endif(MSVC)
     if(NOT EXISTS "${OUTPUT_FILE}")
        message(STATUS "Building ${Component}")
        execute_process(COMMAND ${b2Args} --with-${Component} WORKING_DIRECTORY ${BOOST_ROOT})
     endif()
     #if(NOT EXISTS "${OUTPUT_FILE}")
        message(STATUS "Building ${Component}: ${b2Args}")
        execute_process(COMMAND ${b2Args} --with-${Component} WORKING_DIRECTORY ${BOOST_ROOT} RESULT_VARIABLE Result OUTPUT_VARIABLE Output ERROR_VARIABLE Error)
        if(NOT Result EQUAL 0)
         message(ERROR "Failed running ${b2Args} --with-${Component}:\n${Output}\n${Error}\n")
        endif()
     #endif()
   endforeach()