NIRALUser / GROUPS

Group wise registration for 3d-models
Apache License 2.0
0 stars 11 forks source link

COMP: Fix packaging of RigidAlignmentModuleMetadata on windows #34

Closed jcfr closed 2 years ago

jcfr commented 2 years ago

This commit fixes a regression introduced in 37c1a3003 (COMP: Support customization of RigidAlignmentModule title and category).

It removes the use of WITH_SUBDIR which generated an incorrect install rules attempting to install the non-existent directory /path/to/lib/Slicer-4.13/qt-scripted-modules/RigidAlignmentModule.

It turns out only the windows packaging was failing because it seems to be the only platform where attempting to use the following install command specifying a nonexistent directory is failing:

  file(
    INSTALL DESTINATION "/path/to/install/lib/Slicer-4.13/qt-scripted-modules"
    TYPE DIRECTORY FILES
      "/path/to/build/SPHARM-PDM-build/lib/Slicer-4.13/qt-scripted-modules/RigidAlignmentModule" USE_SOURCE_PERMISSIONS)