Two words were swapped in a variable name, leading to empty
libdir and includedir variables in the generated .pc files.
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()
#============================================================================