-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #443 from ValeevGroup/evaleev/feature/modularized-…
…boost modularized boost
- Loading branch information
Showing
12 changed files
with
108 additions
and
142 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
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 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
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,36 @@ | ||
# Boost can be discovered by every (sub)package but only the top package can build it ... | ||
# if we are the top package need to include the list of Boost components to be built | ||
if("${CMAKE_PROJECT_NAME}" STREQUAL "${PROJECT_NAME}") | ||
set(required_components | ||
headers # TA, BTAS | ||
algorithm # TA | ||
container # TA, BTAS | ||
iterator # TA, BTAS | ||
random # TA, BTAS | ||
tuple # TA | ||
) | ||
if (DEFINED Boost_REQUIRED_COMPONENTS) | ||
list(APPEND Boost_REQUIRED_COMPONENTS | ||
${required_components}) | ||
list(REMOVE_DUPLICATES Boost_REQUIRED_COMPONENTS) | ||
else() | ||
set(Boost_REQUIRED_COMPONENTS "${required_components}" CACHE STRING "Components of Boost to discovered or built") | ||
endif() | ||
set(optional_components | ||
serialization # BTAS | ||
) | ||
if (DEFINED Boost_OPTIONAL_COMPONENTS) | ||
list(APPEND Boost_OPTIONAL_COMPONENTS | ||
${optional_components} | ||
) | ||
list(REMOVE_DUPLICATES Boost_OPTIONAL_COMPONENTS) | ||
else() | ||
set(Boost_OPTIONAL_COMPONENTS "${optional_components}" CACHE STRING "Optional components of Boost to discovered or built") | ||
endif() | ||
endif() | ||
|
||
if (NOT DEFINED Boost_FETCH_IF_MISSING) | ||
set(Boost_FETCH_IF_MISSING 1) | ||
endif() | ||
|
||
include(${vg_cmake_kit_SOURCE_DIR}/modules/FindOrFetchBoost.cmake) |
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
Oops, something went wrong.