diff --git a/CMakeLists.txt b/CMakeLists.txt index 6a189b9..4457efc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ cmake_minimum_required (VERSION 2.8) -project (mraa) +project (mraa C) FIND_PACKAGE (Threads REQUIRED) diff --git a/examples/c++/CMakeLists.txt b/examples/c++/CMakeLists.txt index 69714aa..d688d48 100644 --- a/examples/c++/CMakeLists.txt +++ b/examples/c++/CMakeLists.txt @@ -1,3 +1,5 @@ +enable_language(CXX) + add_executable (AioA0 AioA0.cpp) add_executable (blink-io-cpp Blink-IO.cpp) add_executable (Pwm3-cycle Pwm3-cycle.cpp) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 6698fa4..05b546c 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -171,6 +171,7 @@ if (DOXYGEN_FOUND) endif () if (BUILDSWIG) + enable_language(CXX) find_package (SWIG) if (SWIG_FOUND) include (${SWIG_USE_FILE})