Skip to content

Commit aa2002a

Browse files
committed
build: do not force CXX standard
1 parent 0e8a2cc commit aa2002a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

CMakeLists.txt

+4-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ option(FORCE_ADE_ASSERTS "Always enable ADE_ASSERT" OFF)
1818
option(BUILD_ADE_DOCUMENTATION "Build doxygen documentation" OFF)
1919
option(BUILD_WITH_STATIC_CRT "Build with static multi-threaded C Runtime (MS Windows/Visual Studio only)" OFF)
2020

21-
set(CMAKE_CXX_STANDARD 11)
21+
if(NOT DEFINED CMAKE_CXX_STANDARD)
22+
set(CMAKE_CXX_STANDARD 11)
23+
set(CMAKE_CXX_STANDARD_REQUIRED ON)
24+
endif()
2225

2326
# TODO: this is horrible hack, we must follow cmake
2427
# build/install policy

0 commit comments

Comments
 (0)