File tree Expand file tree Collapse file tree 3 files changed +8
-5
lines changed
Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -91,6 +91,8 @@ install(
9191
9292 FILE_SET CXX_MODULES
9393 DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
94+ CXX_MODULES_BMI
95+ DESTINATION ${CMAKE_INSTALL_LIBDIR} /cmake/beman.scope/bmi-${CMAKE_CXX_COMPILER_ID} _$<CONFIG>
9496 FILE_SET HEADERS
9597)
9698
Original file line number Diff line number Diff line change 33set (ALL_EXAMPLES scope_example unique_resource unique_resource-file)
44
55# module tests will only compile with gcc15 or clang20 and above
6- if (CMAKE_CXX_SCAN_FOR_MODULES)
6+ if (CMAKE_CXX_SCAN_FOR_MODULES AND CMAKE_CXX_MODULE_STD )
77 list (APPEND ALL_EXAMPLES scope-module)
88endif ()
99
Original file line number Diff line number Diff line change 1515// destroy noisy
1616// scope exit: true success: true fail: false
1717
18- #ifdef HAS_MODULE_STD
18+ // #ifdef HAS_MODULE_STD
1919import std;
20- #else
21- #include < print>
22- #endif
20+ // #else
21+ // NOTE: this needs C++23!
22+ // #include <print>
23+ // #endif
2324
2425import beman.scope;
2526
You can’t perform that action at this time.
0 commit comments