Skip to content

Commit 0a5b901

Browse files
carstendroesserpmai
authored andcommitted
Set system-independent default compiler to use C++ 11
Ensure compatibility with post 3.5 versions of protobuf out of the box. Note that nothing in OSI per see requires C++ 11, so users catering to older platforms using older protobuf releases can switch this back if needed using the normal CMake configuration mechanisms. Signed-off-by: Carsten Drösser <carsten.droesser@gmail.com>
1 parent c32628c commit 0a5b901

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ cmake_minimum_required(VERSION 3.5)
22

33
project(open_simulation_interface)
44

5+
# set default compiler
6+
set(CMAKE_CXX_STANDARD 11)
7+
58
# Set a default build type if none was specified
69
set(default_build_type "Release")
710
if(EXISTS "${CMAKE_SOURCE_DIR}/.git")

0 commit comments

Comments
 (0)