File tree Expand file tree Collapse file tree 2 files changed +15
-13
lines changed Expand file tree Collapse file tree 2 files changed +15
-13
lines changed Original file line number Diff line number Diff line change @@ -42,19 +42,10 @@ option(
42
42
${PROJECT_IS_TOP_LEVEL}
43
43
)
44
44
45
- add_library (beman.scope INTERFACE )
46
- add_library (beman::scope ALIAS beman.scope)
47
-
48
45
# gersemi: off
49
46
50
- set_target_properties (
51
- beman.scope
52
- PROPERTIES
53
- VERIFY_INTERFACE_HEADER_SETS ON
54
- EXPORT_NAME scope
55
- )
56
-
57
47
if (CMAKE_CXX_SCAN_FOR_MODULES)
48
+ add_library (beman.scope)
58
49
target_compile_features (beman.scope PRIVATE cxx_std_23)
59
50
target_sources (
60
51
beman.scope
@@ -68,6 +59,7 @@ if(CMAKE_CXX_SCAN_FOR_MODULES)
68
59
FILES include /beman/scope/beman.scope.cppm
69
60
)
70
61
else ()
62
+ add_library (beman.scope INTERFACE )
71
63
target_compile_features (beman.scope INTERFACE cxx_std_20)
72
64
target_sources (
73
65
beman.scope
@@ -78,6 +70,15 @@ else()
78
70
)
79
71
endif ()
80
72
73
+ add_library (beman::scope ALIAS beman.scope)
74
+
75
+ set_target_properties (
76
+ beman.scope
77
+ PROPERTIES
78
+ VERIFY_INTERFACE_HEADER_SETS ON
79
+ EXPORT_NAME scope
80
+ )
81
+
81
82
include (GNUInstallDirs)
82
83
83
84
install (
@@ -111,7 +112,8 @@ if(BEMAN_SCOPE_INSTALL_CONFIG_FILE_PACKAGE)
111
112
EXPORT beman.scope-targets
112
113
DESTINATION ${CMAKE_INSTALL_LIBDIR} /cmake/beman.scope
113
114
NAMESPACE beman::
114
- CXX_MODULES_DIRECTORY cxx-modules
115
+ CXX_MODULES_DIRECTORY
116
+ cxx-modules
115
117
COMPONENT beman.scope
116
118
)
117
119
endif ()
Original file line number Diff line number Diff line change 16
16
17
17
include_guard (GLOBAL )
18
18
19
- set (CMAKE_C_COMPILER clang )
20
- set (CMAKE_CXX_COMPILER clang ++)
19
+ set (CMAKE_C_COMPILER gcc )
20
+ set (CMAKE_CXX_COMPILER g ++)
21
21
22
22
if (BEMAN_BUILDSYS_SANITIZER STREQUAL "MaxSan" )
23
23
set (SANITIZER_FLAGS
You can’t perform that action at this time.
0 commit comments