nixpkgs/pkgs/by-name/ne/nettee/fix-cmake-output.patch
2025-03-25 23:12:13 +01: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