Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tools/postinstall-fixup/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Post-install scripts
if(NOT SOFA_BUILD_RELEASE_PACKAGE)
if(NOT SOFA_BUILD_RELEASE_PACKAGE AND NOT CMAKE_SYSTEM_NAME STREQUAL Windows)
return()
endif()

if(TARGET Sofa.Qt)
if(TARGET Sofa.Qt AND SOFA_BUILD_RELEASE_PACKAGE)
find_package(Qt5 COMPONENTS Gui REQUIRED)
get_target_property(qt5gui_loc Qt5::Gui LOCATION_RELEASE)
get_filename_component(QT_LIB_DIR "${qt5gui_loc}" DIRECTORY)
Expand Down
5 changes: 0 additions & 5 deletions tools/postinstall-fixup/windows-postinstall-fixup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,3 @@ move_metis "$INSTALL_DIR"
cd "$INSTALL_DIR" && find -name "*.dll" -path "*/plugins/*" | while read lib; do
cp "$lib" "$INSTALL_DIR_BIN"
done

# Copy all collection libs in install/bin to make them easily findable
cd "$INSTALL_DIR" && find -name "*.dll" -path "*/collections/*" | while read lib; do
cp "$lib" "$INSTALL_DIR_BIN"
done