Skip to content

Commit

Permalink
Fix pkgconfig prefix with absolute CMAKE_INSTALL_LIBDIR (#3076)
Browse files Browse the repository at this point in the history
#2879 introduced an assumption that CMAKE_INSTALL_LIBDIR is relative, by concatenating it with CMAKE_INSTALL_PREFIX. Instead, this path should be formed using CMAKE_INSTALL_FULL_LIBDIR.
  • Loading branch information
lopsided98 authored Sep 10, 2021
1 parent a7c9910 commit cca6ddd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ else (build_errors)

file(RELATIVE_PATH
PC_CONFIG_RELATIVE_PATH_TO_PREFIX
${CMAKE_INSTALL_PREFIX}/${LIB_INSTALL_DIR}/pkgconfig
${CMAKE_INSTALL_FULL_LIBDIR}/pkgconfig
${CMAKE_INSTALL_PREFIX}
)
foreach (pkgconfig ${pkgconfig_files})
Expand Down

0 comments on commit cca6ddd

Please sign in to comment.