Skip to content

Commit

Permalink
Remove IDYNTREE_USES_PYTHON_VERSION cached CMake variable
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoferigo committed Aug 30, 2020
1 parent bdb443d commit e6b6f50
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions bindings/python/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
set(CMAKE_SWIG_FLAGS "-Wextra;-module;iDynTree;-threads")
set(IDYNTREE_USES_PYTHON_VERSION "" CACHE STRING "Specify python version to use" )

find_package(Python3 ${IDYNTREE_USES_PYTHON_VERSION} COMPONENTS Interpreter Development NumPy REQUIRED)
find_package(Python3 COMPONENTS Interpreter Development NumPy REQUIRED)
message(STATUS "Using Python: ${Python3_EXECUTABLE}")

if(NOT IDYNTREE_USES_PYTHON_VERSION)
set (IDYNTREE_USES_PYTHON_VERSION ${Python3_VERSION})
endif()

set_source_files_properties(../iDynTree.i PROPERTIES CPLUSPLUS ON)

swig_add_library(iDynTree_python
Expand Down

0 comments on commit e6b6f50

Please sign in to comment.