Skip to content

Commit

Permalink
CMAKE_INSTALL_PREFIX processing added.
Browse files Browse the repository at this point in the history
  • Loading branch information
nkaskov committed Jan 9, 2024
1 parent f0d9aa4 commit 4bff48c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,11 @@ if(PROOF_PRODUCER_VERSION_INCREMENT)
string(APPEND CPACK_PACKAGE_VERSION "-${PROOF_PRODUCER_VERSION_INCREMENT}")
endif()

set(CPACK_PACKAGING_INSTALL_PREFIX "/usr/lib/proof-producer")
if (NOT CMAKE_INSTALL_PREFIX)
set(CMAKE_INSTALL_PREFIX "/usr/lib/proof-producer")
endif()

set(CPACK_PACKAGING_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX})

install(SCRIPT cmake/create-symlinks.cmake)

Expand Down
2 changes: 1 addition & 1 deletion cmake/create-symlinks.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ file(MAKE_DIRECTORY $ENV{DESTDIR}/usr/bin)

foreach(BINARY IN LISTS BINARIES)
set(LINK_NAME $ENV{DESTDIR}/usr/bin/${BINARY})
set(LINK_TARGET "../lib/zkllvm/bin/${BINARY}")
set(LINK_TARGET "${CMAKE_INSTALL_PREFIX}/bin/${BINARY}")
message("${LINK_NAME} -> ${LINK_TARGET}")
file(CREATE_LINK ${LINK_TARGET} ${LINK_NAME} SYMBOLIC)
endforeach()

0 comments on commit 4bff48c

Please sign in to comment.