We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2bb4fc commit 5179e4cCopy full SHA for 5179e4c
CMakeLists.txt
@@ -21,6 +21,10 @@ if(NOT CMAKE_BUILD_TYPE)
21
message(STATUS "Setting build type to '${CMAKE_BUILD_TYPE}' as none was specified.")
22
endif()
23
24
+if (NOT CMAKE_INSTALL_BINDIR)
25
+ set(CMAKE_INSTALL_BINDIR bin)
26
+endif()
27
+
28
set(CMAKE_C_FLAGS "-Wall -Wextra --pedantic -Wno-strict-aliasing -Wno-variadic-macros")
29
set(CMAKE_C_FLAGS_DEBUG "-g -DDEBUG")
30
set(CMAKE_C_FLAGS_RELEASE "-O2")
@@ -98,7 +102,7 @@ endif()
98
102
99
103
# INSTALL
100
104
101
-install(TARGETS ${TARGET_NAME} DESTINATION bin)
105
+install(TARGETS ${TARGET_NAME} DESTINATION ${CMAKE_INSTALL_BINDIR})
106
107
set(SERVICE_EXTRA_OPTIONS "")
108
if(IS_DIRECTORY "/etc/munin/plugins" AND
0 commit comments