mirror of
https://github.com/facebook/rocksdb.git
synced 2024-11-27 20:43:57 +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()
|