Skip to content

Commit

Permalink
[CMake] Fix SofaPython3 finding with in-tree build (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
guparan authored Dec 16, 2021
1 parent 192ad36 commit 1f06775
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,11 @@ if(SofaPython3Tools)
message("-- Found SofaPython3Tools. Python3 packages will be installed.")
include(${SofaPython3Tools})
set(SP3_PYTHON_PACKAGES_DIRECTORY "python3/site-packages")
else()
# try again with the find_package mechanism
find_package(SofaPython3 QUIET)
endif()
if(SofaPython3Tools OR SofaPython3_FOUND)
SP3_add_python_package(
SOURCE_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/python3/softrobots
TARGET_DIRECTORY softrobots
Expand Down

0 comments on commit 1f06775

Please sign in to comment.