summaryrefslogtreecommitdiffstats
path: root/src/rocksdb/cmake/modules/CxxFlags.cmake
blob: 7980cca70ed5706648181f107af6129a16450286 (plain)
1
2
3
4
5
6
7
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()