From 6ecbfcaff9e0b11b80a05914d6b8405067f657f7 Mon Sep 17 00:00:00 2001 From: ptrkrysik Date: Thu, 14 Aug 2014 14:57:10 +0200 Subject: Added check to cmake --- swig/CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'swig') diff --git a/swig/CMakeLists.txt b/swig/CMakeLists.txt index 68ffd63..7c88fa2 100644 --- a/swig/CMakeLists.txt +++ b/swig/CMakeLists.txt @@ -17,6 +17,14 @@ # the Free Software Foundation, Inc., 51 Franklin Street, # Boston, MA 02110-1301, USA. +######################################################################## +# Check if there is C++ code at all +######################################################################## +if(NOT lol_sources) + MESSAGE(STATUS "No C++ sources... skipping swig/") + return() +endif(NOT lol_sources) + ######################################################################## # Include swig generation macros ######################################################################## -- cgit v1.2.3