File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -386,7 +386,14 @@ install ( TARGETS ${LIB_NAME} ${LIB_NAME}-static
386
386
# Code to fix the dylib install name on Mac.
387
387
include ( cmake/fixupInstallNameDir.cmake )
388
388
389
- install ( DIRECTORY "${MODULE_DIR} /" DESTINATION "${INSTALL_MOD_DIR} " )
389
+ set (MOD_DIR_TO_INSTALL "${MODULE_DIR} " )
390
+ set (MOD_DESTINATION_DIR "${INSTALL_MOD_DIR} " )
391
+ install (
392
+ CODE "file(GLOB_RECURSE MODULE_FILES \" ${MOD_DIR_TO_INSTALL} /*.mod\" )"
393
+ CODE "file(GLOB_RECURSE SUBMOD_FILES \" ${MOD_DIR_TO_INSTALL} /*.smod\" )"
394
+ CODE "file(INSTALL \$ {MODULE_FILES} DESTINATION \"\$ {CMAKE_INSTALL_PREFIX}/${MOD_DESTINATION_DIR} \" )"
395
+ CODE "file(INSTALL \$ {SUBMOD_FILES} DESTINATION \"\$ {CMAKE_INSTALL_PREFIX}/${MOD_DESTINATION_DIR} \" )"
396
+ )
390
397
391
398
#------------------------------------------
392
399
# Add portable unistall command to makefile
You can’t perform that action at this time.
0 commit comments