Skip to content

Commit

Permalink
Allow python3 site-package to be modified (#72)
Browse files Browse the repository at this point in the history
* Allow re-use of already defined SP3_PYTHON_PACKAGES_DIRECTORY cmake var or user define for consistency.

* Add verbosity.
  • Loading branch information
olivier-roussel authored Oct 12, 2023
1 parent 91d9367 commit bd49c19
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,10 @@ else()
find_package(SofaPython3 QUIET)
endif()
if(SofaPython3Tools OR SofaPython3_FOUND)
message("-- Python3 packages will be installed.")
set(SP3_PYTHON_PACKAGES_DIRECTORY "python3/site-packages")
if(NOT SP3_PYTHON_PACKAGES_DIRECTORY)
set(SP3_PYTHON_PACKAGES_DIRECTORY "python3/site-packages")
endif()
message("-- Python3 packages will be installed in: ${SP3_PYTHON_PACKAGES_DIRECTORY}.")
SP3_add_python_package(
SOURCE_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/python3/mor
TARGET_DIRECTORY mor
Expand Down

0 comments on commit bd49c19

Please sign in to comment.