From: Victor Westerhuis Date: Wed, 17 Mar 2021 15:38:38 +0000 (+0100) Subject: Fix .pc file generation in CMakeLists.txt X-Git-Tag: 2.0.2~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=681391885c98ce9edab23c154feeef8220c981c8;p=thirdparty%2Fzlib-ng.git Fix .pc file generation in CMakeLists.txt Two words were swapped in a variable name, leading to empty libdir and includedir variables in the generated .pc files. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 45164fae..2283fa7b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -796,12 +796,12 @@ endif() if(INC_INSTALL_DIR STREQUAL "${CMAKE_INSTALL_PREFIX}/include") set(PC_INC_INSTALL_DIR "\${prefix}/include") else() - set(PC_INC_INSTALL_DIR "${INSTALL_INC_DIR}") + set(PC_INC_INSTALL_DIR "${INC_INSTALL_DIR}") endif() if(LIB_INSTALL_DIR STREQUAL "${CMAKE_INSTALL_PREFIX}/lib") set(PC_LIB_INSTALL_DIR "\${exec_prefix}/lib") else() - set(PC_LIB_INSTALL_DIR "${INSTALL_LIB_DIR}") + set(PC_LIB_INSTALL_DIR "${LIB_INSTALL_DIR}") endif() #============================================================================