-
Notifications
You must be signed in to change notification settings - Fork 18
Feature/refactory install module #211
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: main
Are you sure you want to change the base?
Changes from all commits
04035ca
20704e3
8a30a57
ea36d7c
7aafa44
5515558
642135c
d6eb7d2
7e9f98b
41ffe74
0693da8
55533be
58340c9
0b0543e
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 |
|---|---|---|
|
|
@@ -40,9 +40,9 @@ jobs: | |
| "tests": [ | ||
| { "stdlibs": ["libstdc++"], | ||
| "tests": [ | ||
| "Debug.Default", "Release.Default", | ||
| "Release.MaxSan", "Debug.Werror", | ||
| "Debug.Dynamic", "Debug.Coverage" | ||
| "Debug.Default", "Debug.Coverage", | ||
| "Debug.MaxSan", "Debug.Werror", | ||
| "Release.Default", "Release.Dynamic" | ||
| ] | ||
| } | ||
| ] | ||
|
|
@@ -67,8 +67,8 @@ jobs: | |
| "tests": [ | ||
| { "stdlibs": ["libc++"], | ||
| "tests": [ | ||
| "Debug.Default", "Release.Default", "Release.MaxSan", | ||
| "Debug.Dynamic" | ||
| "Debug.Default", "Debug.MaxSan", | ||
| "Release.Default", "Release.Dynamic" | ||
| ] | ||
| } | ||
| ] | ||
|
|
@@ -96,7 +96,10 @@ jobs: | |
| { "cxxversions": ["c++23"], | ||
| "tests": [ | ||
| { "stdlibs": ["stl"], | ||
| "tests": ["Debug.Default", "Release.Default", "Release.MaxSan"] | ||
| "tests": [ | ||
| "Debug.Default", "Debug.MaxSan", | ||
| "Release.Default", "Release.Dynamic" | ||
|
Collaborator
Author
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. For Windows, |
||
| ] | ||
| } | ||
| ] | ||
| } | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -26,33 +26,32 @@ if(BEMAN_USE_MODULES) | |
|
|
||
| # CMake requires the language standard to be specified as compile feature | ||
| # when a target provides C++23 modules and the target will be installed | ||
| add_library(beman.execution STATIC) | ||
| add_library(beman::execution ALIAS beman.execution) | ||
| add_library(${TARGET_PREFIX} STATIC) | ||
| add_library(beman::execution ALIAS ${TARGET_PREFIX}) | ||
| target_compile_features( | ||
| beman.execution | ||
| ${TARGET_PREFIX} | ||
| PUBLIC cxx_std_${CMAKE_CXX_STANDARD} | ||
| ) | ||
|
|
||
| include(GenerateExportHeader) | ||
|
|
||
| generate_export_header( | ||
| beman.execution | ||
| BASE_NAME beman.execution | ||
| ${TARGET_PREFIX} | ||
| BASE_NAME ${TARGET_PREFIX} | ||
| EXPORT_FILE_NAME beman/execution/modules_export.hpp | ||
| ) | ||
| target_sources( | ||
| beman.execution | ||
| ${TARGET_PREFIX} | ||
| PUBLIC | ||
| FILE_SET HEADERS | ||
| BASE_DIRS include ${CMAKE_CURRENT_BINARY_DIR} | ||
| FILES | ||
| ${CMAKE_CURRENT_BINARY_DIR}/beman/execution/modules_export.hpp | ||
| ) | ||
| # FIXME: target_compile_definitions(beman.execution PUBLIC BEMAN_HAS_MODULES) | ||
| target_compile_definitions(${TARGET_PREFIX} PUBLIC BEMAN_HAS_MODULES) | ||
|
Comment on lines
-51
to
+50
Collaborator
Author
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. here I have activated the using of the |
||
| endif() | ||
|
|
||
| if(BEMAN_USE_MODULES AND CMAKE_CXX_MODULE_STD) | ||
| target_compile_definitions(beman.execution PUBLIC BEMAN_HAS_IMPORT_STD) | ||
| target_compile_definitions(${TARGET_PREFIX} PUBLIC BEMAN_HAS_IMPORT_STD) | ||
| else() | ||
| message(WARNING "Missing support for CMAKE_CXX_MODULE_STD!") | ||
| endif() | ||
|
|
@@ -72,13 +71,18 @@ option( | |
|
|
||
| add_subdirectory(src/beman/execution) | ||
|
|
||
| #=============================================================================== | ||
| # NOTE: this must be done before tests! CK | ||
| include(./cmake/beman-install-library-config.cmake) | ||
| beman_install_library(${TARGET_PREFIX} headers) | ||
| include(./cmake/beman-install-library.cmake) | ||
| beman_install_library(${TARGET_PREFIX} TARGETS ${TARGET_NAME} ${TARGET_PREFIX} | ||
| # FIXME: DEPENDENCIES [===[beman.inplace_vector 1.0.0]===] [===[beman.scope 0.0.1 EXACT]===] fmt | ||
| # TODO(CK): XXX OR XXX DEPENDENCIES "beman.inplace_vector 1.0.0;beman.scope 0.0.1 EXACT" | ||
| ) | ||
| #=============================================================================== | ||
|
|
||
| if(BEMAN_EXECUTION_ENABLE_TESTING) | ||
| enable_testing() | ||
| enable_testing() | ||
|
|
||
| if(BEMAN_EXECUTION_ENABLE_TESTING) | ||
| add_subdirectory(tests/beman/execution) | ||
| endif() | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| # cmake/Config.cmake.in -*-makefile-*- | ||
| # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
|
|
||
| include(CMakeFindDependencyMacro) | ||
|
|
||
| @PACKAGE_INIT@ | ||
|
|
||
| include(${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@-targets.cmake) | ||
|
|
||
| check_required_components(@PROJECT_NAME@) |
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.
Only
Debugmust be used withsanitizerorcoverage!