File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -357,7 +357,7 @@ if(CLI11_INSTALL_PACKAGE_TESTS)
357357 set_property (TEST find -package-testsC PROPERTY LABELS Packaging)
358358 set_property (TEST find -package-testsC PROPERTY DEPENDS find -package-testsB)
359359
360- if (CMAKE_CXX_STANDARD GREATER 19 )
360+ if (CLI11_MODULE OR CLI11_MODULE_TEST )
361361 add_test (
362362 find -package-module
363363 ${CMAKE_CTEST_COMMAND}
Original file line number Diff line number Diff line change @@ -14,8 +14,16 @@ find_package(CLI11 2.5 REQUIRED)
1414
1515# Test the target
1616add_executable (module-test module_test.cpp)
17+
18+ target_sources (module-test PUBLIC
19+ FILE_SET cmodule
20+ TYPE CXX_MODULES
21+ FILES cmodule.ixx
22+ )
23+
1724target_link_libraries (module-test CLI11::CLI11)
1825target_compile_definitions (module-test PUBLIC -DCLI11_MODULE=1)
26+ target_compile_options (module-test PUBLIC -fmodules-ts)
1927
2028add_test (NAME module-test1 COMMAND module-test one)
2129set_property (TEST module-test1 PROPERTY PASS_REGULAR_EXPRESSION "OK: export module" )
You can’t perform that action at this time.
0 commit comments