forked from espressif/esp-protocols
		
	build: fix issue with passing cxx_std option, a common workaround
issue: https://gitlab.kitware.com/cmake/cmake/-/issues/23297
This commit is contained in:
		@@ -5,5 +5,9 @@ set(THREADS_PREFER_PTHREAD_FLAG ON)
 | 
			
		||||
find_package(Threads REQUIRED)
 | 
			
		||||
target_link_libraries(${COMPONENT_LIB}  PRIVATE Threads::Threads)
 | 
			
		||||
 | 
			
		||||
target_compile_features(${COMPONENT_LIB} PRIVATE cxx_std_17)
 | 
			
		||||
set_target_properties(${COMPONENT_LIB} PROPERTIES
 | 
			
		||||
    CXX_STANDARD 17
 | 
			
		||||
    CXX_STANDARD_REQUIRED ON
 | 
			
		||||
    CXX_EXTENSIONS ON
 | 
			
		||||
)
 | 
			
		||||
target_compile_definitions(${COMPONENT_LIB} PRIVATE "-DCONFIG_IDF_TARGET_LINUX")
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user