Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1Index: a/CMakeLists.txt
2===================================================================
3--- a/CMakeLists.txt
4+++ b/CMakeLists.txt
5@@ -6,17 +6,18 @@
6 SET(FS11 -D_POSIX_SOURCE)
7 endif (UNIX)
8
9 #modify next line if a different installation target is required
10-SET(CMAKE_INSTALL_PREFIX "/usr/local")
11-SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_INSTALL_PREFIX}/bin)
12+#SET(CMAKE_INSTALL_PREFIX "/usr/local")
13+#SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_INSTALL_PREFIX}/bin)
14 add_executable(nettee nettee.c rb.c nio.c)
15 ###add_executable(stub_child_process stub_child_process.c rb.c nio.c)
16 ###add_executable(stub_parent_process stub_parent_process.c rb.c nio.c)
17 #
18 target_compile_options(nettee PRIVATE ${FS9} ${FS10} ${FS11})
19 ###target_compile_options(stub_child_process PRIVATE ${FS9} ${FS11})
20 ###target_compile_options(stub_parent_process PRIVATE ${FS9} ${FS11})
21+install(TARGETS nettee DESTINATION "${CMAKE_INSTALL_PREFIX}/bin")
22 #
23 #####################################################
24 #
25 #install man pages