Files
nixpkgs/pkgs/by-name/gi/gitqlient/install-to-store.patch

29 lines
995 B
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index d3e75d2f..c8d56287 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -163,7 +163,6 @@ if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
target_link_options(${PROJECT_NAME} PUBLIC "-no-pie")
set(CPACK_PACKAGING_INSTALL_PREFIX "/usr")
- set(CMAKE_INSTALL_PREFIX ${CMAKE_BINARY_DIR}/install/usr)
install(
PROGRAMS ${CMAKE_BINARY_DIR}/${PROJECT_NAME}
@@ -250,7 +249,6 @@ if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
include(CPack)
elseif (CMAKE_SYSTEM_NAME STREQUAL "Darwin")
- set(CMAKE_INSTALL_PREFIX ${CMAKE_BINARY_DIR}/install)
install(
TARGETS ${PROJECT_NAME}
RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}"
@@ -260,7 +258,6 @@ elseif (CMAKE_SYSTEM_NAME STREQUAL "Darwin")
elseif (CMAKE_SYSTEM_NAME STREQUAL "Windows")
include(InstallRequiredSystemLibraries)
- set(CMAKE_INSTALL_PREFIX ${CMAKE_BINARY_DIR}/install)
install(
TARGETS ${PROJECT_NAME}
RUNTIME DESTINATION .