Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
A C++ compiler is required for gtnets and ns3.
[simgrid.git] / CMakeLists.txt
index 05a1a3a..8e9a8da 100644 (file)
@@ -2,8 +2,11 @@ cmake_minimum_required(VERSION 2.6)
 ### Need to set rc ccompiler before enable language
 if(WIN32)
   SET(CMAKE_RC_COMPILER "windres")
-endif(WIN32)
-project(SimGrid CXX C Fortran)
+endif()
+project(SimGrid C)
+if (enable_gtnets OR enable_ns3)
+  enable_language(CXX)
+endif()
 
 set(CMAKE_C_FLAGS "" CACHE TYPE INTERNAL FORCE)
 set(CMAKE_CXX_FLAGS "" CACHE TYPE INTERNAL FORCE)