diff options
author | makaimann <makaim@stanford.edu> | 2020-02-19 13:54:17 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-19 15:54:17 -0600 |
commit | c82720479efcf922136f0919f6fc26a502b2515a (patch) | |
tree | f9007e124cfc07490e914ae1e1e05747e1e1ee11 /src/bindings | |
parent | c6a9ab9da205df7cbf192edc142ee151404dcb1b (diff) |
Add Python bindings using Cython -- see below for more details (#2879)
Diffstat (limited to 'src/bindings')
-rw-r--r-- | src/bindings/CMakeLists.txt | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/bindings/CMakeLists.txt b/src/bindings/CMakeLists.txt index 135331e54..ac2fadd95 100644 --- a/src/bindings/CMakeLists.txt +++ b/src/bindings/CMakeLists.txt @@ -3,6 +3,12 @@ if(NOT ENABLE_SHARED) endif() find_package(SWIG 3.0.0 REQUIRED) +if(POLICY CMP0078) + cmake_policy(SET CMP0078 OLD) +endif() +if(POLICY CMP0086) + cmake_policy(SET CMP0086 OLD) +endif() if(USE_PYTHON3 AND (SWIG_VERSION VERSION_EQUAL 3.0.8)) message(FATAL_ERROR @@ -21,9 +27,9 @@ include_directories( ${PROJECT_SOURCE_DIR}/src/include ${CMAKE_BINARY_DIR}/src) -if(BUILD_BINDINGS_JAVA) +if(BUILD_SWIG_BINDINGS_JAVA) add_subdirectory(java) endif() -if(BUILD_BINDINGS_PYTHON) +if(BUILD_SWIG_BINDINGS_PYTHON) add_subdirectory(python) endif() |