File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -73,24 +73,19 @@ set_source_files_properties(
7373 test_any_sender.cpp PROPERTIES COMPILE_FLAGS
7474 $<$<CXX_COMPILER_ID :MSVC >:/bigobj >)
7575
76- if (STDEXEC_BUILD_MODULES)
77- # these are the only files that build right now...
78- add_executable (test .exec
79- ../test_main.cpp
80- async_scope/test_empty.cpp )
81- set_target_properties (test .exec PROPERTIES CXX_MODULE_STD ON )
82- else ()
76+ if (NOT STDEXEC_BUILD_MODULES)
77+ # None of the exec tests build successfully as modules yet.
8378 add_executable (test .exec ${exec_test_sources} )
84- endif ()
8579
86- add_compile_diagnostics (test .exec )
87- target_link_libraries (
88- test .exec
89- PUBLIC STDEXEC::stdexec stdexec_executable_flags Catch2::Catch2WithMain
90- PRIVATE common_test_settings )
80+ add_compile_diagnostics (test .exec )
81+ target_link_libraries (
82+ test .exec
83+ PUBLIC STDEXEC::stdexec stdexec_executable_flags Catch2::Catch2WithMain
84+ PRIVATE common_test_settings )
9185
92- # Discover the Catch2 test built by the application
93- catch_discover_tests (test .exec PROPERTIES TIMEOUT 30 )
86+ # Discover the Catch2 test built by the application
87+ catch_discover_tests (test .exec PROPERTIES TIMEOUT 30 )
88+ endif ()
9489
9590if (STDEXEC_ENABLE_ASIO)
9691 add_subdirectory (asio )
You can’t perform that action at this time.
0 commit comments