Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
More s/c++11/c++14/.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Fri, 2 Oct 2020 22:30:19 +0000 (00:30 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Fri, 2 Oct 2020 22:30:19 +0000 (00:30 +0200)
FindSimGrid.cmake
docs/source/Installing_SimGrid.rst
docs/source/Start_Your_Own_Project.rst
sonar-project.properties

index 1b18176..ba64ec5 100644 (file)
@@ -119,7 +119,7 @@ if (SimGrid_FOUND AND NOT CMAKE_VERSION VERSION_LESS 2.8.12)
   )
   # 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
index 47c3447..0081350 100644 (file)
@@ -97,7 +97,7 @@ Getting the Dependencies
 ^^^^^^^^^^^^^^^^^^^^^^^^
 
 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.
index d24eea4..5325abe 100644 (file)
@@ -32,7 +32,7 @@ your project. It builds two simulators from a given set of source files.
    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)
@@ -121,7 +121,7 @@ Develop in C++ with Eclipse
 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
index e6e7f49..a5683ea 100644 (file)
@@ -70,7 +70,7 @@ sonar.issue.ignore.multicriteria.c3.ruleKey=c:PPMacroName
 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=**/*