Allow to skip python

This commit is contained in:
Guilhem Lavaux 2015-04-07 14:49:49 +02:00
parent e2ef019ab5
commit 8050679a7f

View File

@ -21,6 +21,7 @@ option(INTERNAL_NETCDF "Build internal version of NETCDF" OFF)
option(INTERNAL_BOOST "Build internal version of BOOST" OFF)
option(USE_GIT_VERSION "Use GIT version to pad version number" OFF)
option(YORICK_SUPPORT "Add for pleasant yorick support" ON)
option(BUILD_PYTHON "Build the python modules" ON)
IF(USE_GIT_VERSION)
get_git_head_revision(HEAD GIT_VER)
SET(EXTRA_VERSION "-${GIT_VER}")
@ -75,6 +76,8 @@ SET(CPACK_SOURCE_IGNORE_FILES
add_subdirectory(src)
add_subdirectory(sample)
if(BUILD_PYTHON)
add_subdirectory(python)
endif(BUILD_PYTHON)
include(CPack)