Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

src/cmake/boost.cmake #137

Open
wants to merge 1 commit into
base: v2.9.x
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/cmake/boost.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@
################################################################################

# set to TRUE to see more detailed information about the boost find/build procedure:
execute_process(COMMAND uname -p OUTPUT_VARIABLE ARM RESULT_VARIABLE result)
STRING(REGEX REPLACE "(\r?\n)+$" "" ARM "${ARM}")
if ("${ARM}" STREQUAL "aarch64")
set (aarch64 “ON”)
else()
set (aarch64 “OFF”)
endif()

set (DEBUG_FINDBOOST FALSE)
if (${DEBUG_FINDBOOST})
set (Boost_DEBUG "ON")
Expand Down Expand Up @@ -183,6 +191,10 @@ if (NOT Boost_FOUND)

set (BJAM_OPTIONS "")

if (${aarch64} STREQUAL "ON")
set (BJAM_OPTIONS ${BJAM_OPTIONS} "architecture=arm")
endif ()

set (UCONFIG "${BOOST_SRC_DIR}/tools/build/src/user-config.jam")
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
file (WRITE "${UCONFIG}" "using gcc : : \"${CMAKE_CXX_COMPILER}\" ;\n")
Expand Down