space separated EIGEN_TEST_CUSTOM_CXX_FLAGS
This commit is contained in:
		
							parent
							
								
									6b2df80317
								
							
						
					
					
						commit
						2d39da8af5
					
				| @ -109,6 +109,8 @@ find_package(StandardMathLibrary) | ||||
| 
 | ||||
| set(EIGEN_TEST_CUSTOM_LINKER_FLAGS  "" CACHE STRING "Additional linker flags when linking unit tests.") | ||||
| set(EIGEN_TEST_CUSTOM_CXX_FLAGS     "" CACHE STRING "Additional compiler flags when compiling unit tests.") | ||||
| # convert space separated argument into CMake lists for downstream consumption | ||||
| separate_arguments(EIGEN_TEST_CUSTOM_CXX_FLAGS NATIVE_COMMAND ${EIGEN_TEST_CUSTOM_CXX_FLAGS}) | ||||
| 
 | ||||
| set(EIGEN_STANDARD_LIBRARIES_TO_LINK_TO "") | ||||
| 
 | ||||
|  | ||||
| @ -79,7 +79,7 @@ macro(ei_add_test_internal testname testname_with_suffix) | ||||
|   endif() | ||||
| 
 | ||||
|   if(EIGEN_TEST_CUSTOM_CXX_FLAGS) | ||||
|     target_compile_options(${targetname} PRIVATE "${EIGEN_TEST_CUSTOM_CXX_FLAGS}") | ||||
|     target_compile_options(${targetname} PRIVATE ${EIGEN_TEST_CUSTOM_CXX_FLAGS}) | ||||
|   endif() | ||||
| 
 | ||||
|   if(EIGEN_STANDARD_LIBRARIES_TO_LINK_TO) | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Erik Schultheis
						Erik Schultheis