Skip to content

Commit

Permalink
Merge pull request #5419 from markrtuttle/fix-cmake-install-symlinks
Browse files Browse the repository at this point in the history
Add DESTDIR to cmake symlinks
  • Loading branch information
hannes-steffenhagen-diffblue authored Jul 23, 2020
2 parents a743af3 + 56b4d28 commit b0b3225
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion jbmc/src/janalyzer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ install(TARGETS janalyzer DESTINATION ${CMAKE_INSTALL_BINDIR})
install(CODE "execute_process( \
COMMAND ${CMAKE_COMMAND} -E create_symlink \
cbmc.1 \
${CMAKE_INSTALL_FULL_MANDIR}/man1/janalyzer.1 \
\$ENV{DESTDIR}${CMAKE_INSTALL_FULL_MANDIR}/man1/janalyzer.1 \
)"
)
2 changes: 1 addition & 1 deletion jbmc/src/jbmc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ install(TARGETS jbmc DESTINATION ${CMAKE_INSTALL_BINDIR})
install(CODE "execute_process( \
COMMAND ${CMAKE_COMMAND} -E create_symlink \
cbmc.1 \
${CMAKE_INSTALL_FULL_MANDIR}/man1/jbmc.1 \
\$ENV{DESTDIR}${CMAKE_INSTALL_FULL_MANDIR}/man1/jbmc.1 \
)"
)
2 changes: 1 addition & 1 deletion jbmc/src/jdiff/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ install(TARGETS jdiff DESTINATION ${CMAKE_INSTALL_BINDIR})
install(CODE "execute_process( \
COMMAND ${CMAKE_COMMAND} -E create_symlink \
cbmc.1 \
${CMAKE_INSTALL_FULL_MANDIR}/man1/jdiff.1 \
\$ENV{DESTDIR}${CMAKE_INSTALL_FULL_MANDIR}/man1/jdiff.1 \
)"
)
2 changes: 1 addition & 1 deletion src/goto-analyzer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ install(TARGETS goto-analyzer DESTINATION ${CMAKE_INSTALL_BINDIR})
install(CODE "execute_process( \
COMMAND ${CMAKE_COMMAND} -E create_symlink \
cbmc.1 \
${CMAKE_INSTALL_FULL_MANDIR}/man1/goto-analyzer.1 \
\$ENV{DESTDIR}${CMAKE_INSTALL_FULL_MANDIR}/man1/goto-analyzer.1 \
)"
)
10 changes: 5 additions & 5 deletions src/goto-cc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,32 +44,32 @@ else()
install(CODE "execute_process( \
COMMAND ${CMAKE_COMMAND} -E create_symlink \
goto-cc \
${CMAKE_INSTALL_FULL_BINDIR}/goto-gcc \
\$ENV{DESTDIR}${CMAKE_INSTALL_FULL_BINDIR}/goto-gcc \
)"
)
install(CODE "execute_process( \
COMMAND ${CMAKE_COMMAND} -E create_symlink \
goto-cc \
${CMAKE_INSTALL_FULL_BINDIR}/goto-ld \
\$ENV{DESTDIR}${CMAKE_INSTALL_FULL_BINDIR}/goto-ld \
)"
)
# Symlink man page to cbmc man page until a real man page is written
install(CODE "execute_process( \
COMMAND ${CMAKE_COMMAND} -E create_symlink \
cbmc.1 \
${CMAKE_INSTALL_FULL_MANDIR}/man1/goto-cc.1 \
\$ENV{DESTDIR}${CMAKE_INSTALL_FULL_MANDIR}/man1/goto-cc.1 \
)"
)
install(CODE "execute_process( \
COMMAND ${CMAKE_COMMAND} -E create_symlink \
cbmc.1 \
${CMAKE_INSTALL_FULL_MANDIR}/man1/goto-gcc.1 \
\$ENV{DESTDIR}${CMAKE_INSTALL_FULL_MANDIR}/man1/goto-gcc.1 \
)"
)
install(CODE "execute_process( \
COMMAND ${CMAKE_COMMAND} -E create_symlink \
cbmc.1 \
${CMAKE_INSTALL_FULL_MANDIR}/man1/goto-ld.1 \
\$ENV{DESTDIR}${CMAKE_INSTALL_FULL_MANDIR}/man1/goto-ld.1 \
)"
)
endif()
2 changes: 1 addition & 1 deletion src/goto-diff/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ install(TARGETS goto-diff DESTINATION ${CMAKE_INSTALL_BINDIR})
install(CODE "execute_process( \
COMMAND ${CMAKE_COMMAND} -E create_symlink \
cbmc.1 \
${CMAKE_INSTALL_FULL_MANDIR}/man1/goto-diff.1 \
\$ENV{DESTDIR}${CMAKE_INSTALL_FULL_MANDIR}/man1/goto-diff.1 \
)"
)
2 changes: 1 addition & 1 deletion src/goto-harness/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ install(TARGETS goto-harness DESTINATION ${CMAKE_INSTALL_BINDIR})
install(CODE "execute_process( \
COMMAND ${CMAKE_COMMAND} -E create_symlink \
cbmc.1 \
${CMAKE_INSTALL_FULL_MANDIR}/man1/goto-harness.1 \
\$ENV{DESTDIR}${CMAKE_INSTALL_FULL_MANDIR}/man1/goto-harness.1 \
)"
)
2 changes: 1 addition & 1 deletion src/goto-instrument/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ install(TARGETS goto-instrument DESTINATION ${CMAKE_INSTALL_BINDIR})
install(CODE "execute_process( \
COMMAND ${CMAKE_COMMAND} -E create_symlink \
cbmc.1 \
${CMAKE_INSTALL_FULL_MANDIR}/man1/goto-instrument.1 \
\$ENV{DESTDIR}${CMAKE_INSTALL_FULL_MANDIR}/man1/goto-instrument.1 \
)"
)

0 comments on commit b0b3225

Please sign in to comment.