-
Notifications
You must be signed in to change notification settings - Fork 1
Try to fix failing b2 + cmake test #197
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
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
4a4db34
Use boostdep CML
mborland 33652ce
Update build.jam to match CML deps
mborland 33082ef
Boostdep --test
mborland 8dfb6af
Remove static_assert
mborland 70d2676
Add random dependency missed
mborland e5c610b
Add install lib to build.jam
mborland 46a1bb6
Add handling for BOOST_CI_INSTALL_TEST macro
mborland 6109678
Drop already linked libraries from boost_test_jamfile
mborland fe40465
Merge cmake_install_test and cmake_subdir_test into 1
mborland b977342
Rename folder
mborland 09c0d0f
Fix double boost in old style find_package
mborland 37ccab0
Apply @Flamefire suggestion for workaround
mborland 62361ca
Find compiled components
mborland b573e94
Re-order and make globally visible
mborland 994181b
Set explicitly the language since B2 does not
mborland 951bcce
Set language standard in executible rather than library
mborland File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 was deleted.
Oops, something went wrong.
This file contains hidden or 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,80 @@ | ||
| # Copyright 2018, 2019 Peter Dimov | ||
| # Distributed under the Boost Software License, Version 1.0. | ||
| # See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt | ||
|
|
||
| cmake_minimum_required(VERSION 3.5...3.16) | ||
|
|
||
| project(cmake_test LANGUAGES CXX) | ||
|
|
||
| if(BOOST_CI_INSTALL_TEST) | ||
|
|
||
| # Workaround until B2 also installs targets for header-only libs | ||
| if(BOOST_CI_INSTALLED_BY STREQUAL "B2") | ||
| find_package(Boost COMPONENTS headers charconv random REQUIRED) | ||
| add_library(boost_safe_numbers INTERFACE IMPORTED GLOBAL) | ||
| target_link_libraries(boost_safe_numbers INTERFACE Boost::headers Boost::charconv Boost::random) | ||
| add_library(Boost::safe_numbers ALIAS boost_safe_numbers) | ||
| else() | ||
| find_package(Boost COMPONENTS safe_numbers REQUIRED) | ||
| endif() | ||
|
|
||
| else() | ||
|
|
||
| add_subdirectory(../.. boostorg/safe_numbers) | ||
|
|
||
| set(deps | ||
|
|
||
| # Primary dependencies | ||
|
|
||
| charconv | ||
| config | ||
| core | ||
| multiprecision | ||
| random | ||
| safe_numerics | ||
| throw_exception | ||
|
|
||
| # Secondary dependencies | ||
|
|
||
| assert # (from charconv) | ||
| compat # (from random) | ||
| integer # (from multiprecision) | ||
| lexical_cast # (from multiprecision) | ||
| math # (from multiprecision) | ||
| predef # (from multiprecision) | ||
| dynamic_bitset # (from random) | ||
| io # (from random) | ||
| system # (from random) | ||
| type_traits # (from random) | ||
| utility # (from random) | ||
| concept_check # (from safe_numerics) | ||
| logic # (from safe_numerics) | ||
| mp11 # (from safe_numerics) | ||
| preprocessor # (from concept_check) | ||
| container_hash # (from dynamic_bitset) | ||
| move # (from dynamic_bitset) | ||
| container # (from lexical_cast) | ||
| variant2 # (from system) | ||
| winapi # (from system) | ||
| intrusive # (from container) | ||
| describe # (from container_hash) | ||
|
|
||
| ) | ||
|
|
||
| foreach(dep IN LISTS deps) | ||
|
|
||
| add_subdirectory(../../../${dep} boostorg/${dep}) | ||
|
|
||
| endforeach() | ||
|
|
||
| endif() | ||
|
|
||
| add_executable(quick ../quick.cpp) | ||
| target_link_libraries(quick Boost::safe_numbers) | ||
| # B2-installed config does not propagate the C++20 requirement, so set it explicitly here. | ||
| target_compile_features(quick PRIVATE cxx_std_20) | ||
|
|
||
| enable_testing() | ||
| add_test(quick quick) | ||
|
|
||
| add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} --output-on-failure -C $<CONFIG>) | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.