Skip to content

Commit

Permalink
symlink should be relative (#674)
Browse files Browse the repository at this point in the history
  • Loading branch information
alxvth authored Aug 30, 2024
1 parent 630f39d commit 4d6686d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ManiVault/cmake/CMakeQuaZipSymlink.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ string(REGEX MATCH "^([0-9]+)\\.([0-9]+)\\.([0-9]+)" QUAZIP_VER_MATCH ${quazip_v
set(quazip_ver_major ${CMAKE_MATCH_1})
set(quazip_ver_minor ${CMAKE_MATCH_2})
set(quazip_file_base ${CMAKE_SHARED_LIBRARY_PREFIX}${quazip_name}$<IF:$<CONFIG:DEBUG>,d,>${CMAKE_SHARED_LIBRARY_SUFFIX})
set(quazip_lib_name ${MV_INSTALL_DIR}/$<CONFIGURATION>/lib/${quazip_file_base}.${quazip_ver_major}.${quazip_ver_minor})
set(quazip_lib_name ./${quazip_file_base}.${quazip_ver_major}.${quazip_ver_minor})
set(quazip_symlink_name ${MV_INSTALL_DIR}/$<CONFIGURATION>/lib/${quazip_file_base}.${quazip_ver})

add_custom_command(TARGET ${MV_EXE} POST_BUILD
COMMAND ${CMAKE_COMMAND} -E create_symlink ${quazip_lib_name} ${quazip_symlink_name}
)

endmacro()
endmacro()

0 comments on commit 4d6686d

Please sign in to comment.