File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -180,7 +180,7 @@ function(boost_lib_installer req_boost_version req_boost_libs)
180
180
# b2 headers
181
181
if (NOT EXISTS ${install_dir} /boost/ )
182
182
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 )
184
184
if (err )
185
185
message (FATAL_ERROR "b2 error:\n ${err_msg} " )
186
186
endif (err )
Original file line number Diff line number Diff line change @@ -18,7 +18,8 @@ function(get_boots_lib_b2_args)
18
18
stage
19
19
--stagedir=${stage_dir}
20
20
-d+2
21
- --hash )
21
+ --hash
22
+ --ignore-site-config )
22
23
23
24
message (STATUS "Generating b2 args." )
24
25
@@ -70,7 +71,7 @@ function(get_boots_lib_b2_args)
70
71
else ()
71
72
list (APPEND b2Args cxxflags=-fPIC cxxflags=-std=c++11 )
72
73
# 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} " )
74
75
if (CMAKE_CXX_COMPILER_ID MATCHES "^(Apple)?Clang$" )
75
76
list (APPEND b2Args toolset=clang-${ToolsetVer} )
76
77
if (HAVE_LIBC++ )
@@ -83,4 +84,4 @@ function(get_boots_lib_b2_args)
83
84
endif ()
84
85
85
86
set (b2Args "${b2Args} " PARENT_SCOPE )
86
- endfunction (get_boots_lib_b2_args )
87
+ endfunction (get_boots_lib_b2_args )
You can’t perform that action at this time.
0 commit comments