commit f762c87a4a2898fb2b17ebce6d7deb5d17891bb1
parent 4339765642b6d9c24065b51e93cfe6c7a4b3b4a4
Author: Kamil Rytarowski <n54@gmx.com>
Date: Sun, 3 Jan 2016 17:11:49 +0100
NetBSD: Sanitize CMake script to build under NetBSD
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
@@ -17,6 +17,7 @@ cmake_minimum_required (VERSION 2.6)
project(logswan C)
include(CheckFunctionExists)
+include(GNUInstallDirs)
# Check if system has strtonum
list(APPEND CMAKE_REQUIRED_DEFINITIONS -D_OPENBSD_SOURCE)
@@ -49,3 +50,4 @@ add_executable(logswan ${SRC} ${DEPS})
target_link_libraries(logswan ${GEOIP_LIBRARIES} ${JANSSON_LIBRARIES} m)
install(TARGETS logswan DESTINATION bin)
+install(FILES logswan.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1/)