From 5471cd2861ca39c4af72046d863137357187441a Mon Sep 17 00:00:00 2001 From: Chris Green Date: Wed, 22 Feb 2023 08:27:07 -0600 Subject: [PATCH] Make CMAKE_CXX_STANDARD a CACHE variable This allows CMAKE_CXX_STANDARD to be customized from the CMake CLI with (e.g.) `-DCMAKE_CXX_STANDARD=17`. --- cmake/XRootDOSDefs.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/XRootDOSDefs.cmake b/cmake/XRootDOSDefs.cmake index 475fcfe33da..5f1ebc71546 100644 --- a/cmake/XRootDOSDefs.cmake +++ b/cmake/XRootDOSDefs.cmake @@ -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 )