mirror of
https://github.com/facebook/rocksdb.git
synced 2024-12-03 05:54:17 +00:00
8 lines
277 B
CMake
8 lines
277 B
CMake
|
macro(get_cxx_std_flags FLAGS_VARIABLE)
|
||
|
if( CMAKE_CXX_STANDARD_REQUIRED )
|
||
|
set(${FLAGS_VARIABLE} ${CMAKE_CXX${CMAKE_CXX_STANDARD}_STANDARD_COMPILE_OPTION})
|
||
|
else()
|
||
|
set(${FLAGS_VARIABLE} ${CMAKE_CXX${CMAKE_CXX_STANDARD}_EXTENSION_COMPILE_OPTION})
|
||
|
endif()
|
||
|
endmacro()
|