From 4ee22bef8b4cebdc98311329547406dd7ebeea06 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Sat, 27 Oct 2012 19:21:19 +0200 Subject: [PATCH] A C++ compiler is required for gtnets and ns3. --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 05b9c0e535..8e9a8daf42 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,6 +4,9 @@ if(WIN32) SET(CMAKE_RC_COMPILER "windres") 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) -- 2.20.1