-
-
Notifications
You must be signed in to change notification settings - Fork 542
Fix C++ modules BMI installation and re-enable external build tests #7206
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -38,6 +38,7 @@ function(hpx_setup_target target) | |
| HPX_PREFIX | ||
| HEADER_ROOT | ||
| SCAN_FOR_MODULES | ||
| CXX_STANDARD | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You may want to add this new argument option to
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| ) | ||
| set(multi_value_args DEPENDENCIES COMPONENT_DEPENDENCIES COMPILE_FLAGS | ||
| LINK_FLAGS INSTALL_FLAGS INSTALL_PDB | ||
|
|
@@ -87,6 +88,13 @@ function(hpx_setup_target target) | |
| hpx_debug("setup_target.${target}" "LINK_FLAGS: ${target_LINK_FLAGS}") | ||
| endif() | ||
|
|
||
| if(target_CXX_STANDARD) | ||
| set_target_properties( | ||
| ${target} PROPERTIES CXX_STANDARD ${target_CXX_STANDARD} | ||
| ) | ||
| hpx_debug("setup_target.${target}" "CXX_STANDARD: ${target_CXX_STANDARD}") | ||
| endif() | ||
|
|
||
| if(target_NAME) | ||
| set(name "${target_NAME}") | ||
| else() | ||
|
|
@@ -232,9 +240,21 @@ function(hpx_setup_target target) | |
| if(HPX_WITH_CXX_MODULES AND target_SCAN_FOR_MODULES) | ||
| hpx_debug("setup_target.${target} SCAN_FOR_MODULES: ON") | ||
|
|
||
| hpx_configure_module_consumer(${target} hpx_core_module_if) | ||
| if(TARGET hpx_core_module_if) | ||
| hpx_configure_module_consumer(${target} hpx_core_module_if) | ||
|
arpittkhandelwal marked this conversation as resolved.
|
||
| elseif(TARGET HPXInternal::hpx_core_module_if) | ||
| hpx_configure_module_consumer(${target} HPXInternal::hpx_core_module_if) | ||
| else() | ||
| hpx_error( | ||
| "setup_target.${target}: C++ modules scanning is enabled, but neither " | ||
| "hpx_core_module_if nor HPXInternal::hpx_core_module_if exists" | ||
| ) | ||
| endif() | ||
|
|
||
| if(TARGET hpx_full_module_if) | ||
| hpx_configure_module_consumer(${target} hpx_full_module_if) | ||
| elseif(TARGET HPXInternal::hpx_full_module_if) | ||
| hpx_configure_module_consumer(${target} HPXInternal::hpx_full_module_if) | ||
|
arpittkhandelwal marked this conversation as resolved.
arpittkhandelwal marked this conversation as resolved.
|
||
| endif() | ||
| else() | ||
| hpx_debug("setup_target.${target} SCAN_FOR_MODULES: OFF") | ||
|
|
@@ -247,8 +267,8 @@ function(hpx_setup_target target) | |
|
|
||
| # If modules are enabled, Clang emits DWARF v5, which requires using lld | ||
| # instead of ld. | ||
| if(CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR CMAKE_CXX_COMPILER_ID MATCHES | ||
| "AppleClang" | ||
| if((NOT MSVC) AND (CMAKE_CXX_COMPILER_ID MATCHES "Clang" | ||
| OR CMAKE_CXX_COMPILER_ID MATCHES "AppleClang") | ||
| ) | ||
|
arpittkhandelwal marked this conversation as resolved.
|
||
| get_target_property(_type ${target} TYPE) | ||
| if((_type STREQUAL "SHARED_LIBRARY") OR (_type STREQUAL "EXECUTABLE")) | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.