From: Brendan Le Foll Date: Thu, 19 Mar 2015 11:31:51 +0000 (+0000) Subject: src/CMakeLists.txt: warn if swig is less than 3.0.5 X-Git-Tag: v0.6.2~38 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=406acb61b3447c318351baa90d3e998c1afda4c7;p=contrib%2Fmraa.git src/CMakeLists.txt: warn if swig is less than 3.0.5 The SWIG js module cannot build on SWIG 2.x, it also now requires macros defined in SWIG 3.0.4 and above but there are python issues in everything 3.0.2-3.0.4 so we force a requirement on 3.0.5 and above Signed-off-by: Brendan Le Foll --- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 9cceb96..b9f986a 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -106,7 +106,11 @@ if (BUILDSWIG) add_subdirectory (python) endif () if (BUILDSWIGNODE) - add_subdirectory (javascript) + if (SWIG_VERSION VERSION_GREATER 3.0.4) + add_subdirectory (javascript) + else () + message ("WARN - SWIG is ${SWIG_VERSION}. Please upgrade to 3.0.5+ to build nodejs addon") + endif () endif () endif () endif ()