File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1- cmake_minimum_required (VERSION 3.0 )
1+ cmake_minimum_required (VERSION 3.1 )
22
33project (mlperf_loadgen)
44
@@ -7,9 +7,11 @@ set(mlperf_loadgen_VERSION_MAJOR 0)
77set (mlperf_loadgen_VERSION_MINOR 5)
88message ("mlperf_loadgen v${mlperf_loadgen_VERSION_MAJOR} .${mlperf_loadgen_VERSION_MINOR} " )
99
10- # Set build options.
10+ # Set build options. NB: CXX_STANDARD is supported since CMake 3.1.
1111set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O2 -W -Wall" )
12- message (STATUS "Using compiler flags: ${CMAKE_CXX_FLAGS} " )
12+ message (STATUS "Using C++ compiler flags: ${CMAKE_CXX_FLAGS} " )
13+ set (CMAKE_CXX_STANDARD "14" )
14+ message (STATUS "Using C++ standard: ${CMAKE_CXX_STANDARD} " )
1315message (STATUS "Using static linker flags: ${CMAKE_STATIC_LINKER_FLAGS} " )
1416message (STATUS "Using shared linker flags: ${CMAKE_SHARED_LINKER_FLAGS} " )
1517
You can’t perform that action at this time.
0 commit comments