forked from cpp-pm/hunter
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix build error when Boost CONFIG_MACRO is the last of the CMAKE_ARGS (…
- Loading branch information
Showing
34 changed files
with
274 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
function(hunter_parse_boost_config_macros outvar) | ||
# parse ARGN to convert 'CONFIG_MACRO=id1;id2;CONFIG_MACRO_id3=3' to 'id1;id2;id3=3' | ||
unset(boost_config_macros_list) | ||
set(config_macros_without_value_mode FALSE) | ||
foreach(arg ${ARGN}) | ||
if ("${arg}" MATCHES "[^=]+=.+") | ||
set(config_macros_without_value_mode FALSE) | ||
endif() | ||
if(config_macros_without_value_mode) | ||
# CONFIG_MACRO=id_1 id_2 ... id_n -> APPEND id_n | ||
list(APPEND boost_config_macros_list "${arg}") | ||
elseif("${arg}" MATCHES "^CONFIG_MACRO=(.+)" ) | ||
# CONFIG_MACRO=id_1 id_2 ... id_n -> APPEND id_1 | ||
list(APPEND boost_config_macros_list "${CMAKE_MATCH_1}") | ||
set(config_macros_without_value_mode TRUE) | ||
elseif("${arg}" MATCHES "^CONFIG_MACRO_([^=]+=.+)" ) | ||
# CONFIG_MACRO_id=val -> APPEND id=val | ||
list(APPEND boost_config_macros_list "${CMAKE_MATCH_1}") | ||
endif() | ||
endforeach() | ||
set(${outvar} ${boost_config_macros_list} PARENT_SCOPE) | ||
endfunction() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,5 +18,5 @@ hunter_download( | |
Boost | ||
PACKAGE_COMPONENT | ||
atomic | ||
PACKAGE_INTERNAL_DEPS_ID "18" | ||
PACKAGE_INTERNAL_DEPS_ID "19" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,5 +18,5 @@ hunter_download( | |
Boost | ||
PACKAGE_COMPONENT | ||
chrono | ||
PACKAGE_INTERNAL_DEPS_ID "18" | ||
PACKAGE_INTERNAL_DEPS_ID "19" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,5 +18,5 @@ hunter_download( | |
Boost | ||
PACKAGE_COMPONENT | ||
context | ||
PACKAGE_INTERNAL_DEPS_ID "18" | ||
PACKAGE_INTERNAL_DEPS_ID "19" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,5 +18,5 @@ hunter_download( | |
Boost | ||
PACKAGE_COMPONENT | ||
graph | ||
PACKAGE_INTERNAL_DEPS_ID "18" | ||
PACKAGE_INTERNAL_DEPS_ID "19" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,5 +18,5 @@ hunter_download( | |
Boost | ||
PACKAGE_COMPONENT | ||
locale | ||
PACKAGE_INTERNAL_DEPS_ID "18" | ||
PACKAGE_INTERNAL_DEPS_ID "19" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,5 +18,5 @@ hunter_download( | |
Boost | ||
PACKAGE_COMPONENT | ||
log | ||
PACKAGE_INTERNAL_DEPS_ID "18" | ||
PACKAGE_INTERNAL_DEPS_ID "19" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,5 +18,5 @@ hunter_download( | |
Boost | ||
PACKAGE_COMPONENT | ||
math | ||
PACKAGE_INTERNAL_DEPS_ID "18" | ||
PACKAGE_INTERNAL_DEPS_ID "19" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,5 +26,5 @@ hunter_download( | |
Boost | ||
PACKAGE_COMPONENT | ||
mpi | ||
PACKAGE_INTERNAL_DEPS_ID "18" | ||
PACKAGE_INTERNAL_DEPS_ID "19" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,5 +18,5 @@ hunter_download( | |
Boost | ||
PACKAGE_COMPONENT | ||
python | ||
PACKAGE_INTERNAL_DEPS_ID "18" | ||
PACKAGE_INTERNAL_DEPS_ID "19" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,5 +18,5 @@ hunter_download( | |
Boost | ||
PACKAGE_COMPONENT | ||
random | ||
PACKAGE_INTERNAL_DEPS_ID "18" | ||
PACKAGE_INTERNAL_DEPS_ID "19" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,5 +18,5 @@ hunter_download( | |
Boost | ||
PACKAGE_COMPONENT | ||
regex | ||
PACKAGE_INTERNAL_DEPS_ID "18" | ||
PACKAGE_INTERNAL_DEPS_ID "19" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,5 +18,5 @@ hunter_download( | |
Boost | ||
PACKAGE_COMPONENT | ||
signals | ||
PACKAGE_INTERNAL_DEPS_ID "18" | ||
PACKAGE_INTERNAL_DEPS_ID "19" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,5 +18,5 @@ hunter_download( | |
Boost | ||
PACKAGE_COMPONENT | ||
system | ||
PACKAGE_INTERNAL_DEPS_ID "18" | ||
PACKAGE_INTERNAL_DEPS_ID "19" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,5 +18,5 @@ hunter_download( | |
Boost | ||
PACKAGE_COMPONENT | ||
test | ||
PACKAGE_INTERNAL_DEPS_ID "18" | ||
PACKAGE_INTERNAL_DEPS_ID "19" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,5 +18,5 @@ hunter_download( | |
Boost | ||
PACKAGE_COMPONENT | ||
thread | ||
PACKAGE_INTERNAL_DEPS_ID "18" | ||
PACKAGE_INTERNAL_DEPS_ID "19" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,5 +18,5 @@ hunter_download( | |
Boost | ||
PACKAGE_COMPONENT | ||
timer | ||
PACKAGE_INTERNAL_DEPS_ID "18" | ||
PACKAGE_INTERNAL_DEPS_ID "19" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,5 +18,5 @@ hunter_download( | |
Boost | ||
PACKAGE_COMPONENT | ||
wave | ||
PACKAGE_INTERNAL_DEPS_ID "18" | ||
PACKAGE_INTERNAL_DEPS_ID "19" | ||
) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
cmake_minimum_required(VERSION 3.0) | ||
|
||
# run at the boost source root | ||
set(boost_user_config_file "boost/config/user.hpp") | ||
|
||
foreach(s @BOOST_CONFIG_MACROS@) | ||
unset(append_str) | ||
if("${s}" MATCHES "^([^=]+)=(.+)" ) | ||
set(append_str "#define ${CMAKE_MATCH_1} ${CMAKE_MATCH_2}") | ||
else() | ||
set(append_str "#define ${s}") | ||
endif() | ||
if(append_str) | ||
message("-- append '${append_str}' to '${boost_user_config_file}'") | ||
file(APPEND "${boost_user_config_file}" "\n${append_str}\n") | ||
endif() | ||
endforeach() |
Oops, something went wrong.