Skip to content

Commit a6b4cbf

Browse files
Nightly Botcwsmith
Nightly Bot
authored andcommitted
Merging develop into master
2 parents 250cbca + 676bf62 commit a6b4cbf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: CMakeLists.txt

+5
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ project(SCOREC VERSION 2.1.0 LANGUAGES CXX C)
1111
include(cmake/bob.cmake)
1212
include(cmake/xsdk.cmake)
1313

14+
option(SCOREC_ENABLE_CXX11 "enable compilation with c++11 support" NO)
15+
1416
option(USE_XSDK_DEFAULTS "enable the XDSK v0.3.0 default configuration" NO)
1517

1618
xsdk_begin_package()
@@ -26,6 +28,9 @@ if(NOT USE_XSDK_DEFAULTS)
2628
bob_begin_cxx_flags()
2729
bob_end_cxx_flags()
2830
set(CMAKE_C_FLAGS "${CMAKE_CXX_FLAGS}")
31+
if(SCOREC_ENABLE_CXX11)
32+
bob_cxx11_flags()
33+
endif()
2934
endif()
3035
message(STATUS "CMAKE_CXX_FLAGS = ${CMAKE_CXX_FLAGS}")
3136

0 commit comments

Comments
 (0)