Skip to content

Commit

Permalink
fix the symlinks to new naming convention for binaries (#160)
Browse files Browse the repository at this point in the history
  • Loading branch information
Barthelemy authored May 22, 2019
1 parent 336f480 commit 8f51dd8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Framework/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ set(

# As per https://stackoverflow.com/questions/35765106/symbolic-links-cmake
macro(install_symlink filepath sympath)
install(DIRECTORY DESTINATION bin) # just in case it is not there yet
install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink ${filepath} ${sympath})")
install(CODE "message(\"-- Created symlink: ${sympath} -> ${filepath}\")")
endmacro(install_symlink)
Expand All @@ -180,7 +181,7 @@ foreach(i RANGE ${count})
list(GET EXE_OLD_NAMES ${i} oldname)
add_executable(${name} ${src})
target_link_libraries(${name} PRIVATE QualityControl CURL::CURL)
install_symlink(${CMAKE_INSTALL_FULL_BINDIR}/${name} ${CMAKE_INSTALL_FULL_BINDIR}/${oldname})
install_symlink(${name} ${CMAKE_INSTALL_FULL_BINDIR}/${oldname})
endforeach()

# ---- Gui ----
Expand Down

0 comments on commit 8f51dd8

Please sign in to comment.