From cf116198b3861972b0a6682eee149184b3247711 Mon Sep 17 00:00:00 2001 From: Guilhem Lavaux Date: Sun, 9 Jun 2024 07:47:52 +0200 Subject: [PATCH] fix: Add is configure_boost.cmake from release/2.x --- external/configure_boost.cmake | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 external/configure_boost.cmake diff --git a/external/configure_boost.cmake b/external/configure_boost.cmake new file mode 100644 index 0000000..ca125be --- /dev/null +++ b/external/configure_boost.cmake @@ -0,0 +1,17 @@ +MESSAGE(STATUS "Reconfiguring using compiler flags=\"${COMPILER_EXTRA_FLAGS}\" and linker flags=\"${LINKER_EXTRA_FLAGS}\"") +FILE(WRITE ${SRC_DIR}/tools/build/src/user-config.jam + "using ${TOOLSET} : cmake : \"${COMPILER}\" : \"${COMPILER_EXTRA_FLAGS}\" \"${LINKER_EXTRA_FLAGS}\" ;\n" +) + +#FILE(APPEND ${SRC_DIR}/boost/regex/user.hpp +# "#define BOOST_REGEX_MATCH_EXTRA 1\n" +#) + +execute_process( + COMMAND "${SRC_DIR}/bootstrap.sh" --prefix=${INSTALL_PATH} toolset=${TOOLSET}-cmake + RESULT_VARIABLE okcode +) + +IF (NOT "${okcode}" STREQUAL "0") + MESSAGE(FATAL_ERROR "Cannot execute configure command") +ENDIF()