Fixed #16: do not symlink js8call in usr if not using the opt install prefix

This commit is contained in:
Jordan Sherer 2018-12-14 21:23:06 -05:00
parent 5c1f890095
commit 3c2a5f98ec

View File

@ -1272,12 +1272,14 @@ if (NOT WIN32 AND NOT APPLE)
#COMPONENT runtime
)
execute_process(COMMAND ln -s /opt/js8call/bin/js8call ljs8call)
IF("${CMAKE_INSTALL_PREFIX}" STREQUAL "/opt/js8call")
execute_process(COMMAND ln -s /opt/js8call/bin/js8call ljs8call)
install(FILES
${CMAKE_BINARY_DIR}/ljs8call DESTINATION /usr/bin/ RENAME js8call
#COMPONENT runtime
)
install(FILES
${CMAKE_BINARY_DIR}/ljs8call DESTINATION /usr/bin/ RENAME js8call
#COMPONENT runtime
)
endif()
endif (NOT WIN32 AND NOT APPLE)