mirror of
				https://github.com/ArthurSonzogni/FTXUI.git
				synced 2025-11-04 13:38:14 +08:00 
			
		
		
		
	CMake: use compile_features to set min C++ standard (#647)
This commit is contained in:
		@@ -8,9 +8,7 @@ function(example name)
 | 
			
		||||
  target_link_libraries(ftxui_example_${name} PUBLIC ${DIRECTORY_LIB})
 | 
			
		||||
  file(RELATIVE_PATH dir ${EXAMPLES_DIR} ${CMAKE_CURRENT_SOURCE_DIR})
 | 
			
		||||
  set_property(GLOBAL APPEND PROPERTY FTXUI::EXAMPLES ${dir}/${name})
 | 
			
		||||
  set_target_properties(ftxui_example_${name} PROPERTIES
 | 
			
		||||
    CXX_STANDARD 17
 | 
			
		||||
  )
 | 
			
		||||
  target_compile_features(ftxui_example_${name} PRIVATE cxx_std_17)
 | 
			
		||||
endfunction(example)
 | 
			
		||||
 | 
			
		||||
add_subdirectory(component)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user