 eeacbd26c8
			
		
	
	
		eeacbd26c8
		
	
	
	
	
		
			
			Removed all configurations that explicitly test or set the c++ standard flags. The only place the standard is now configured is at the top of the main `CMakeLists.txt` file, which can easily be updated (e.g. if we decide to move to c++14+). This can also be set via command-line using ``` > cmake -DCMAKE_CXX_STANDARD 14 ``` Kept the `EIGEN_TEST_CXX11` flag for now - that still controls whether to build/run the `cxx11_*` tests. We will likely end up renaming these tests and removing the `CXX11` subfolder.
		
			
				
	
	
		
			17 lines
		
	
	
		
			498 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			498 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
| file(GLOB examples_SRCS "*.cpp")
 | |
| 
 | |
| foreach(example_src ${examples_SRCS})
 | |
|   get_filename_component(example ${example_src} NAME_WE)
 | |
|   add_executable(${example} ${example_src})
 | |
|   if(EIGEN_STANDARD_LIBRARIES_TO_LINK_TO)
 | |
|     target_link_libraries(${example} ${EIGEN_STANDARD_LIBRARIES_TO_LINK_TO})
 | |
|   endif()
 | |
|   add_custom_command(
 | |
|     TARGET ${example}
 | |
|     POST_BUILD
 | |
|     COMMAND ${example}
 | |
|     ARGS >${CMAKE_CURRENT_BINARY_DIR}/${example}.out
 | |
|   )
 | |
|   add_dependencies(all_examples ${example})
 | |
| endforeach()
 |