mirror of
https://github.com/adulau/ssldump.git
synced 2024-11-21 17:07:04 +00:00
Use correct cmake GNUInstallDirs variables with their built-in defaults
GNUInstallDirs.cmake expects that at least one language is enabled before including GNUInstallDirs. See also: https://cmake.org/cmake/help/latest/command/install.html
This commit is contained in:
parent
e1796a8851
commit
44e963d12e
1 changed files with 4 additions and 5 deletions
|
@ -1,5 +1,4 @@
|
||||||
cmake_minimum_required(VERSION 3.13.4)
|
cmake_minimum_required(VERSION 3.13.4)
|
||||||
include(CheckSymbolExists)
|
|
||||||
|
|
||||||
project(
|
project(
|
||||||
ssldump
|
ssldump
|
||||||
|
@ -8,6 +7,9 @@ project(
|
||||||
LANGUAGES C
|
LANGUAGES C
|
||||||
)
|
)
|
||||||
|
|
||||||
|
include(CheckSymbolExists)
|
||||||
|
include(GNUInstallDirs)
|
||||||
|
|
||||||
configure_file(base/pcap-snoop.c.in base/pcap-snoop.c)
|
configure_file(base/pcap-snoop.c.in base/pcap-snoop.c)
|
||||||
|
|
||||||
set(SOURCES
|
set(SOURCES
|
||||||
|
@ -110,8 +112,5 @@ target_link_libraries(ssldump
|
||||||
${JSONC_LIBRARIES}
|
${JSONC_LIBRARIES}
|
||||||
)
|
)
|
||||||
|
|
||||||
set(CMAKE_INSTALL_PREFIX "/usr/local")
|
install(TARGETS ssldump DESTINATION ${CMAKE_INSTALL_BINDIR})
|
||||||
install(TARGETS ssldump DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)
|
|
||||||
|
|
||||||
set(CMAKE_INSTALL_MANDIR "/usr/local/share/man")
|
|
||||||
install(FILES ssldump.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1)
|
install(FILES ssldump.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1)
|
||||||
|
|
Loading…
Reference in a new issue