diff options
Diffstat (limited to 'src/bindings/CMakeLists.txt')
-rw-r--r-- | src/bindings/CMakeLists.txt | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/bindings/CMakeLists.txt b/src/bindings/CMakeLists.txt index 0a258b8..89905ce 100644 --- a/src/bindings/CMakeLists.txt +++ b/src/bindings/CMakeLists.txt @@ -24,9 +24,16 @@ if (SWIG_FOUND) if(SWIG_VERSION VERSION_GREATER 2.0.4) MARK_AS_ADVANCED(SWIG_DIR SWIG_EXECUTABLE SWIG_VERSION) INCLUDE(${SWIG_USE_FILE}) - add_subdirectory(swig/java) - add_subdirectory(swig/csharp) - add_subdirectory(swig/php) + if (BUILD_BINDING_JAVA) + add_subdirectory(swig/java) + endif() + if (BUILD_BINDING_CSHARP) + add_subdirectory(swig/csharp) + endif() + if (BUILD_BINDING_PHP) + add_subdirectory(swig/php) + endif() + if(SWIG_VERSION VERSION_LESS 3.0.0) message(STATUS "SWIG version > 3.0 is recommended, found ${SWIG_VERSION}") endif() |