summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorVictor Westerhuis <victor@westerhu.is>2021-03-17 16:38:38 +0100
committerHans Kristian Rosbach <hk-github@circlestorm.org>2021-03-17 18:22:39 +0100
commit681391885c98ce9edab23c154feeef8220c981c8 (patch)
tree2ebababff73637010fec871cb33b0ba80ec1baf1 /CMakeLists.txt
parentb7af2db53f02e85e5315981e7ad0cef26e37e042 (diff)
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.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 45164fa..2283fa7 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()
#============================================================================