This reverts commit 7106dce6fd.
This causes a regression for packaging, as the generated
`.pc` file will contain the location that was used to build
the package archive.
9 lines
332 B
CMake
9 lines
332 B
CMake
function(generate_pkg_config_file in_file)
|
|
set(prefix ${CMAKE_INSTALL_PREFIX})
|
|
set(exec_prefix \${prefix})
|
|
set(libdir \${exec_prefix}/${CMAKE_INSTALL_LIBDIR})
|
|
set(includedir \${prefix}/${CMAKE_INSTALL_INCLUDEDIR})
|
|
set(PACKAGE_VERSION ${PROJECT_VERSION})
|
|
configure_file(${in_file} ${PROJECT_NAME}.pc @ONLY)
|
|
endfunction()
|