Skip to content

Commit e038941

Browse files
committed
Replace hard-coded "plugins" relocatable directory by variable
1 parent baaf3fc commit e038941

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ SP3_add_python_package(
202202
sofa_create_package(
203203
PACKAGE_NAME ${PROJECT_NAME}
204204
PACKAGE_VERSION ${PROJECT_VERSION}
205-
RELOCATABLE "plugins"
205+
RELOCATABLE ${SOFA_PLUGINS_RELOCATABLE_INSTALL_DIR}
206206
)
207207

208208
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/CMake/SofaPython3Tools.cmake" "${CMAKE_BINARY_DIR}/lib/cmake/SofaPython3Tools.cmake" COPYONLY)
@@ -216,7 +216,7 @@ if (SP3_LINK_TO_USER_SITE AND SP3_PYTHON_PACKAGES_LINK_DIRECTORY)
216216
set(SP3_SITE_PACKAGES_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib/${SP3_PYTHON_PACKAGES_DIRECTORY}")
217217

218218
file(GLOB directories RELATIVE "${SP3_SITE_PACKAGES_OUTPUT_DIRECTORY}" "${SP3_SITE_PACKAGES_OUTPUT_DIRECTORY}/*")
219-
219+
220220
# Create the site-package link directory if it doesn't exists yet
221221
install(DIRECTORY DESTINATION ${SP3_PYTHON_PACKAGES_LINK_DIRECTORY})
222222
foreach(directory ${directories})

0 commit comments

Comments
 (0)