fix pkg-config file

The CMAKE_INSTALL_FULL_<dir> variables are only defined if
GNUInstallDirs is included.
This commit is contained in:
Robert Schütz
2021-09-05 20:44:29 -07:00
committed by Robert Schütz
parent e518dc3331
commit 8fb5e038a9

View File

@@ -1,5 +1,6 @@
cmake_minimum_required(VERSION 3.16)
project(deltachat LANGUAGES C)
include(GNUInstallDirs)
find_program(CARGO cargo)
@@ -35,7 +36,6 @@ add_custom_target(
"target/release/pkgconfig/deltachat.pc"
)
include(GNUInstallDirs)
install(FILES "deltachat-ffi/deltachat.h" DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
install(FILES "target/release/libdeltachat.a" DESTINATION ${CMAKE_INSTALL_LIBDIR})
install(FILES "target/release/libdeltachat.so" DESTINATION ${CMAKE_INSTALL_LIBDIR})