mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-11-04 14:09:33 +01:00 
			
		
		
		
	Set C++ standard for multithreading test
This commit is contained in:
		@@ -481,6 +481,7 @@ set_tests_properties(
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
add_executable(Multithreading ${TESTS_DIR}/X37-Multithreading.cpp)
 | 
					add_executable(Multithreading ${TESTS_DIR}/X37-Multithreading.cpp)
 | 
				
			||||||
target_link_libraries(Multithreading PRIVATE Catch2::Catch2WithMain)
 | 
					target_link_libraries(Multithreading PRIVATE Catch2::Catch2WithMain)
 | 
				
			||||||
 | 
					target_compile_features(Multithreading PRIVATE cxx_std_20)
 | 
				
			||||||
add_test(
 | 
					add_test(
 | 
				
			||||||
  NAME Reporters::Multithreading
 | 
					  NAME Reporters::Multithreading
 | 
				
			||||||
  COMMAND ${CMAKE_COMMAND} -E env $<TARGET_FILE:Multithreading>
 | 
					  COMMAND ${CMAKE_COMMAND} -E env $<TARGET_FILE:Multithreading>
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user