Skip to content

Commit

Permalink
Added CMake for option python-dev lib version.
Browse files Browse the repository at this point in the history
  • Loading branch information
pjarosik committed Dec 6, 2021
1 parent c723949 commit 102c0db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ set(ARRUS_PYTHON_INSTALL_DIR python)
set(Us4_LIB_DIR ${Us4_ROOT_DIR}/lib64)

option(ARRUS_BUILD_PY "Build python API." OFF)
option(ARRUS_PY_VERSION "Python version for which the ARRUS package should be built." 3.8)
option(ARRUS_BUILD_MATLAB "Build MATLAB API." OFF)
option(ARRUS_BUILD_DOCS "Build documentation." OFF)
option(ARRUS_RUN_TESTS "Run all tests builded packages." OFF)
Expand Down
4 changes: 2 additions & 2 deletions api/python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
################################################################################
find_package(SWIG REQUIRED)
include(UseSWIG)
find_package(PythonInterp REQUIRED)
find_package(PythonLibs REQUIRED)
find_package(PythonInterp ${ARRUS_PY_VERSION} REQUIRED)
find_package(PythonLibs ${ARRUS_PY_VERSION} REQUIRED)
set_property(SOURCE wrappers/core.i PROPERTY CPLUSPLUS ON)
if (MSVC)
set_property(
Expand Down

0 comments on commit 102c0db

Please sign in to comment.