)
# We need C++14, so check for it just in case the user removed it since compiling SimGrid
if (NOT CMAKE_VERSION VERSION_LESS 3.8)
- # 3.8+ allows us to simply require C++11 (or higher)
+ # 3.8+ allows us to simply require C++14 (or higher)
set_property(TARGET SimGrid::SimGrid PROPERTY INTERFACE_COMPILE_FEATURES cxx_std_14)
elseif (NOT CMAKE_VERSION VERSION_LESS 3.1)
# 3.1+ is similar but for certain features. We pick just one
^^^^^^^^^^^^^^^^^^^^^^^^
C++ compiler (either g++, clang, or icc).
- We use the C++11 standard, and older compilers tend to fail on
+ We use the C++14 standard, and older compilers tend to fail on
us. It seems that g++ 5.0 or higher is required nowadays (because of
boost). SimGrid compiles well with `clang` or `icc` too.
Python 3.
cmake_minimum_required(VERSION 2.8.8)
project(MyFirstSimulator)
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14")
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")
find_package(SimGrid REQUIRED)
If you wish to develop your plugin or modify SimGrid using
Eclipse. You have to run cmake and import it as a Makefile project.
-Next you have to activate C++11 in your build settings, add -std=c++11
+Next you have to activate C++14 in your build settings, add -std=c++14
in the CDT GCC Built-in compiler settings.
.. image:: /img/eclipseScreenShot.png
sonar.issue.ignore.multicriteria.c3.resourceKey=include/smpi/smpi_extended_traces.h
# Concise syntax should be used for concatenatable namespaces
-# This is C++17, and we still support C++11
+# This is C++17, and we still support C++14
sonar.issue.ignore.multicriteria.c4.ruleKey=cpp:S5812
sonar.issue.ignore.multicriteria.c4.resourceKey=**/*