diff options
author | Ingmar Vanhassel | 2009-10-29 15:13:17 +0100 |
---|---|---|
committer | Ingmar Vanhassel | 2009-10-29 15:13:17 +0100 |
commit | fd0db31b3d1cda4c7ef263a4c9338f42217e8eb2 (patch) | |
tree | 616afba216ab3788e03d3099db3c4a5a9935aa5c | |
parent | e3a41876ddcdf29db9cd3bae606c40c09b6c6192 (diff) | |
download | libplist-fd0db31b3d1cda4c7ef263a4c9338f42217e8eb2.tar.gz libplist-fd0db31b3d1cda4c7ef263a4c9338f42217e8eb2.tar.bz2 |
Add a CMake option to disable python bindings
-rw-r--r-- | CMakeLists.txt | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index d4b1f46..4055ad3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,9 +17,14 @@ ENDIF(NOT DEFINED CMAKE_INSTALL_LIBDIR) FIND_PACKAGE( LibXml2 REQUIRED ) FIND_PACKAGE( GLIB2 REQUIRED ) -FIND_PACKAGE( SWIG ) -FIND_PACKAGE( PythonInterp ) -FIND_PACKAGE( PythonLibs ) + +OPTION(ENABLE_PYTHON "Enable Python bindings (needs Swig)" ON) + +IF(ENABLE_PYTHON) + FIND_PACKAGE( SWIG ) + FIND_PACKAGE( PythonInterp ) + FIND_PACKAGE( PythonLibs ) +ENDIF(ENABLE_PYTHON) INCLUDE_DIRECTORIES( "${CMAKE_CURRENT_SOURCE_DIR}/include" ) |