Skip to content

Commit c7ace6f

Browse files
Merge pull request #7 from lyssdod/master
Fix build on amd64 Gentoo
2 parents 6192657 + fbcb404 commit c7ace6f

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

cmake/BoostLibInstaller.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ function(boost_lib_installer req_boost_version req_boost_libs)
180180
# b2 headers
181181
if(NOT EXISTS ${install_dir}/boost/)
182182
message(STATUS "Generating headers ...")
183-
execute_process(COMMAND ${b2_command} headers WORKING_DIRECTORY ${install_dir} RESULT_VARIABLE err OUTPUT_VARIABLE err_msg)
183+
execute_process(COMMAND ${b2_command} --ignore-site-config headers WORKING_DIRECTORY ${install_dir} RESULT_VARIABLE err OUTPUT_VARIABLE err_msg)
184184
if(err)
185185
message(FATAL_ERROR "b2 error:\n${err_msg}")
186186
endif(err)

cmake/GetBoostLibB2Args.cmake

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ function(get_boots_lib_b2_args)
1818
stage
1919
--stagedir=${stage_dir}
2020
-d+2
21-
--hash)
21+
--hash
22+
--ignore-site-config)
2223

2324
message(STATUS "Generating b2 args.")
2425

@@ -70,7 +71,7 @@ function(get_boots_lib_b2_args)
7071
else()
7172
list(APPEND b2Args cxxflags=-fPIC cxxflags=-std=c++11)
7273
# Need to configure the toolset based on whatever version CMAKE_CXX_COMPILER is
73-
string(REGEX MATCH "[0-9]+\\.[0-9]+" ToolsetVer "${CMAKE_CXX_COMPILER_VERSION}")
74+
string(REGEX MATCH "[0-9]+\\.[0-9]+(\\.[0-9]+)?" ToolsetVer "${CMAKE_CXX_COMPILER_VERSION}")
7475
if(CMAKE_CXX_COMPILER_ID MATCHES "^(Apple)?Clang$")
7576
list(APPEND b2Args toolset=clang-${ToolsetVer})
7677
if(HAVE_LIBC++)
@@ -83,4 +84,4 @@ function(get_boots_lib_b2_args)
8384
endif()
8485

8586
set(b2Args "${b2Args}" PARENT_SCOPE)
86-
endfunction(get_boots_lib_b2_args)
87+
endfunction(get_boots_lib_b2_args)

0 commit comments

Comments
 (0)