From 8fb5e038a97d8ae68564c885d61b93127a68366d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sun, 5 Sep 2021 20:44:29 -0700 Subject: [PATCH] fix pkg-config file The CMAKE_INSTALL_FULL_ variables are only defined if GNUInstallDirs is included. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2140540ce..5ed8020c1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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})