IF(NOT DEFINED BOOST_SERIALIZATION_USABLE OR NOT ${BOOST_SERIALIZATION_USABLE})
# Only run this check if it hasn't successfully run previously.
MESSAGE(STATUS "Performing Test BOOST_SERIALIZATION_USABLE")
- IF(DEAL_II_ALLOW_PLATFORM_INTROSPECTION)
- FILE(REMOVE_RECURSE ${CMAKE_CURRENT_BINARY_DIR}/cmake/configure/TestBoostBug)
- FILE(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/cmake/configure/TestBoostBug)
+
+ FILE(REMOVE_RECURSE ${CMAKE_CURRENT_BINARY_DIR}/cmake/configure/TestBoostBug)
+ FILE(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/cmake/configure/TestBoostBug)
+ EXECUTE_PROCESS(
+ COMMAND ${CMAKE_COMMAND}
+ -DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}
+ -DCMAKE_C_COMPILER=${CMAKE_C_COMPILER}
+ "-DBOOST_INCLUDE_DIRS=${BOOST_INCLUDE_DIRS}"
+ "-DBOOST_LIBRARIES=${BOOST_LIBRARIES}"
+ ${CMAKE_CURRENT_SOURCE_DIR}/cmake/configure/TestBoostBug
+ WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/cmake/configure/TestBoostBug
+ RESULT_VARIABLE _result
+ OUTPUT_QUIET
+ ERROR_QUIET
+ )
+ IF(${_result} EQUAL 0)
EXECUTE_PROCESS(
- COMMAND ${CMAKE_COMMAND}
- -DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}
- -DCMAKE_C_COMPILER=${CMAKE_C_COMPILER}
- "-DBOOST_INCLUDE_DIRS=${BOOST_INCLUDE_DIRS}"
- "-DBOOST_LIBRARIES=${BOOST_LIBRARIES}"
- ${CMAKE_CURRENT_SOURCE_DIR}/cmake/configure/TestBoostBug
+ COMMAND ${CMAKE_COMMAND} --build . --target run
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/cmake/configure/TestBoostBug
RESULT_VARIABLE _result
OUTPUT_QUIET
ERROR_QUIET
)
- IF(${_result} EQUAL 0)
- EXECUTE_PROCESS(
- COMMAND ${CMAKE_COMMAND} --build . --target run
- WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/cmake/configure/TestBoostBug
- RESULT_VARIABLE _result
- OUTPUT_QUIET
- ERROR_QUIET
- )
- ENDIF()
ENDIF()
IF(${_result} EQUAL 0)
MESSAGE(STATUS "Performing Test BOOST_SERIALIZATION_USABLE - Success")