Skip to content

Commit

Permalink
Fix cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
StillerHarpo committed Dec 13, 2022
1 parent 0f1ec0b commit 6b9d34e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,13 @@ configure_file(
${DCMTK_BINARY_DIR}/dcmtk.pc
@ONLY
)
if (IS_ABSOLUTE "${CMAKE_INSTALL_LIBDIR}")
set(CMAKE_INSTALL_LIBDIR_PREFIX "${CMAKE_INSTALL_LIBDIR}")
else()
${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/pkgconfig
set(CMAKE_INSTALL_LIBDIR_PREFIX "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}")
endif()

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

0 comments on commit 6b9d34e

Please sign in to comment.