CMakeLists.txt: do not require a C++ compiler
By default, CMake assumes both a C and C++ compiler are required. This is not needed for mraa because it only provides C++ header files. Note that if using SWIG you need one and if using node.js 3+ you'll need a C++11 compiler Signed-off-by: Pieterjan Camerlynck <pieterjan.camerlynck@gmail.com> Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
committed by
Brendan Le Foll
parent
6d391ce605
commit
a87a104efe
@@ -1,5 +1,5 @@
|
||||
cmake_minimum_required (VERSION 2.8)
|
||||
project (mraa)
|
||||
project (mraa C)
|
||||
|
||||
FIND_PACKAGE (Threads REQUIRED)
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -171,6 +171,7 @@ if (DOXYGEN_FOUND)
|
||||
endif ()
|
||||
|
||||
if (BUILDSWIG)
|
||||
enable_language(CXX)
|
||||
find_package (SWIG)
|
||||
if (SWIG_FOUND)
|
||||
include (${SWIG_USE_FILE})
|
||||
|
||||
Reference in New Issue
Block a user