Skip to content

Commit

Permalink
Fix builds with absolute CMAKE_INSTALL_LIBDIR.
Browse files Browse the repository at this point in the history
Thanks to GitHub user StillerHarpo (Florian Engel) for the report and
suggested patch.
  • Loading branch information
michaelonken committed Jan 25, 2023
1 parent 0dca684 commit 04b0d6c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMake/dcmtk.pc.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
prefix="@CMAKE_INSTALL_PREFIX@"
exec_prefix="${prefix}"
libdir="${prefix}/@CMAKE_INSTALL_LIBDIR@"
libdir="@CMAKE_INSTALL_FULL_LIBDIR@"
includedir="${prefix}/include/"

Name: DCMTK
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -210,5 +210,5 @@ configure_file(
)

install(FILES "${DCMTK_BINARY_DIR}/dcmtk.pc"
DESTINATION ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/pkgconfig
DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig
)

0 comments on commit 04b0d6c

Please sign in to comment.