-
-
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 | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -134,11 +134,10 @@ function(hpx_extract_includes_from_file module) | |||||||||
| foreach(include ${includes}) | ||||||||||
| string(REGEX REPLACE "#include (<[^>]+>)" "\\1" filename ${include}) | ||||||||||
|
|
||||||||||
| if(NOT filename MATCHES "\\.|/") | ||||||||||
| # Check if the include is a standard library header | ||||||||||
| if(${filename} IN_LIST STANDARD_LIBRARY_HEADERS) | ||||||||||
| list(APPEND found_includes ${filename}) | ||||||||||
| endif() | ||||||||||
| if("${filename}" IN_LIST STANDARD_LIBRARY_HEADERS) | ||||||||||
| # Capture standard library headers (with or without extensions, e.g. | ||||||||||
| # <vector>, <link.h>, <dlfcn.h>). | ||||||||||
|
Comment on lines
+138
to
+139
|
||||||||||
| # Capture standard library headers (with or without extensions, e.g. | |
| # <vector>, <link.h>, <dlfcn.h>). | |
| # Capture only headers explicitly listed in STANDARD_LIBRARY_HEADERS | |
| # (for example, <vector>). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This may be a valid comment to address.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,11 +19,19 @@ write_basic_package_version_file( | |
| COMPATIBILITY AnyNewerVersion | ||
| ) | ||
|
|
||
| # Export HPXInternalTargets in the build directory | ||
| # CXX_MODULES_DIRECTORY was added in CMake 3.28 | ||
| set(_cxx_modules_directory_arg) | ||
| if(CMAKE_VERSION VERSION_GREATER_EQUAL "3.28") | ||
| set(_cxx_modules_directory_arg CXX_MODULES_DIRECTORY cxx-modules) | ||
| endif() | ||
|
Comment on lines
+22
to
+26
|
||
|
|
||
| # Export HPXInternalTargets in the build directory. Use the EXPORT signature so | ||
| # CMake also generates the per-target C++ module metadata files. | ||
| export( | ||
| TARGETS ${HPX_EXPORT_INTERNAL_TARGETS} | ||
| NAMESPACE HPXInternal:: | ||
| FILE "${CMAKE_CURRENT_BINARY_DIR}/lib/cmake/${HPX_PACKAGE_NAME}/HPXInternalTargets.cmake" | ||
| ${_cxx_modules_directory_arg} | ||
| ) | ||
|
|
||
| # Export HPXInternalTargets in the install directory | ||
|
|
@@ -35,11 +43,13 @@ install( | |
| COMPONENT cmake | ||
|
arpittkhandelwal marked this conversation as resolved.
|
||
| ) | ||
|
|
||
| # Export HPXTargets in the build directory | ||
| # Export HPXTargets in the build directory. Use the EXPORT signature so CMake | ||
| # also generates the per-target C++ module metadata files. | ||
| export( | ||
| TARGETS ${HPX_EXPORT_TARGETS} | ||
| NAMESPACE HPX:: | ||
| FILE "${CMAKE_CURRENT_BINARY_DIR}/lib/cmake/${HPX_PACKAGE_NAME}/HPXTargets.cmake" | ||
| ${_cxx_modules_directory_arg} | ||
| ) | ||
|
arpittkhandelwal marked this conversation as resolved.
|
||
|
|
||
| # Add aliases with the namespace for use within HPX | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.