Files
nixpkgs/pkgs/by-name/ne/nettee/fix-cmake-output.patch
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

26 lines
1.0 KiB
Diff

Index: a/CMakeLists.txt
===================================================================
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -6,17 +6,18 @@
SET(FS11 -D_POSIX_SOURCE)
endif (UNIX)
#modify next line if a different installation target is required
-SET(CMAKE_INSTALL_PREFIX "/usr/local")
-SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_INSTALL_PREFIX}/bin)
+#SET(CMAKE_INSTALL_PREFIX "/usr/local")
+#SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_INSTALL_PREFIX}/bin)
add_executable(nettee nettee.c rb.c nio.c)
###add_executable(stub_child_process stub_child_process.c rb.c nio.c)
###add_executable(stub_parent_process stub_parent_process.c rb.c nio.c)
#
target_compile_options(nettee PRIVATE ${FS9} ${FS10} ${FS11})
###target_compile_options(stub_child_process PRIVATE ${FS9} ${FS11})
###target_compile_options(stub_parent_process PRIVATE ${FS9} ${FS11})
+install(TARGETS nettee DESTINATION "${CMAKE_INSTALL_PREFIX}/bin")
#
#####################################################
#
#install man pages