Added check to cmake

This commit is contained in:
ptrkrysik 2014-08-14 14:57:10 +02:00
parent 9750545e21
commit 6ecbfcaff9
1 changed files with 8 additions and 0 deletions

View File

@ -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
########################################################################