Skip to content

Commit

Permalink
Make CMAKE_CXX_STANDARD a CACHE variable
Browse files Browse the repository at this point in the history
This allows CMAKE_CXX_STANDARD to be customized from the CMake CLI with
(e.g.) `-DCMAKE_CXX_STANDARD=17`.
  • Loading branch information
greenc-FNAL authored and amadio committed Nov 1, 2023
1 parent a1179a7 commit 5471cd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/XRootDOSDefs.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ define_default( LIBRARY_PATH_PREFIX "lib" )
#-------------------------------------------------------------------------------
# Enable c++14
#-------------------------------------------------------------------------------
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD 14 CACHE STRING "C++ Standard")
set(CMAKE_CXX_STANDARD_REQUIRED TRUE)

if( ENABLE_ASAN )
Expand Down

0 comments on commit 5471cd2

Please sign in to comment.