File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ target_sources(
157
157
src/platform/dbghelp_utils.cpp
158
158
)
159
159
160
- if (HAS_CXX20_MODULES )
160
+ if (HAS_CXX20_MODULES AND CMAKE_VERSION VERSION_GREATER_EQUAL "3.23" )
161
161
target_sources (
162
162
${target_name} PUBLIC
163
163
FILE_SET CXX_MODULES
Original file line number Diff line number Diff line change @@ -14,6 +14,15 @@ install(
14
14
15
15
# copy target build output artifacts to OS dependent locations
16
16
# (Except includes, that just sets a compiler flag with the path)
17
+
18
+ if (CMAKE_VERSION VERSION_GREATER_EQUAL "3.23" )
19
+ set (
20
+ FILE_SET_ARGS
21
+ FILE_SET CXX_MODULES
22
+ DESTINATION "${CMAKE_INSTALL_DATAROOTDIR} /cpptrace"
23
+ )
24
+ endif ()
25
+
17
26
install (
18
27
TARGETS ${target_name}
19
28
EXPORT ${package_name} -targets
@@ -26,8 +35,7 @@ install(
26
35
COMPONENT ${package_name} _development
27
36
INCLUDES #
28
37
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR} "
29
- FILE_SET CXX_MODULES
30
- DESTINATION "${CMAKE_INSTALL_DATAROOTDIR} /cpptrace"
38
+ ${FILE_SET_ARGS}
31
39
)
32
40
33
41
# create config file that points to targets file
You can’t perform that action at this time.
0 commit comments