fix detection of cxx11_std_atomic #3096
Merged
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.
Fixes #3031
cxx11_std_atomic.cpp
to require__atomic_load_16
symbolstd::atomic
supportThe previous cmake code is broken in several ways. First, the REQUIRED option is forwarded to the first
add_hpx_config_test
invocation so it generates at fatal error if the test doesn't compile without the library. Second theCheckLibraryExists
module is not included so thecheck_library_exists
call fails. Third the secondadd_hpx_config_test
invocation does nothing becauseHPX_WITH_CXX11_ATOMIC
is already set. This fixes those issues and makes the test source a little more comprehensive.