X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/6b1fdb14d869792793c22c96d20dacd4b135f0e2..3cdd0ac83adfa4f28b05b4c1961555e5203bc6a8:/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt index 05b9c0e535..b0a1e69eb6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,6 +4,18 @@ if(WIN32) SET(CMAKE_RC_COMPILER "windres") endif() project(SimGrid C) +if (enable_gtnets OR enable_ns3) + enable_language(CXX) +endif() +if (NOT DEFINED enable_smpi OR enable_smpi) # smpi is enabled by default + # Call enable_language(Fortran) in order to load the build rules for + # this language, needed by teshsuite/smpi/mpich-test/. Use + # CMAKE_FORCE_Fortran_COMPILER to bypass checks for a working + # compiler (smpiff don't exist at configure time). + include(CMakeForceCompiler) + CMAKE_FORCE_Fortran_COMPILER(smpiff smpiff) + enable_language(Fortran OPTIONAL) +endif() set(CMAKE_C_FLAGS "" CACHE TYPE INTERNAL FORCE) set(CMAKE_CXX_FLAGS "" CACHE TYPE INTERNAL FORCE)