Skip to content

Commit

Permalink
Make includedir in pkgconfig point to the iniparser directory
Browse files Browse the repository at this point in the history
This reverts commit 4b1e33a
which was the result of a misunderstanding regarding issue ndevilla#165. The
issue was not about the actual header location but, as its title already
states: "includedir should point to the iniparser directory".
  • Loading branch information
lmoellendorf committed Jun 13, 2024
1 parent d0970a5 commit 5689a57
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ foreach(TARGET_TYPE ${TARGET_TYPES})
EXPORT ${TARGETS_EXPORT_NAME}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${PROJECT_NAME})

# build directory package config
export(
Expand Down
2 changes: 1 addition & 1 deletion cmake/pc.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
prefix=@CMAKE_INSTALL_PREFIX@
exec_prefix=${prefix}
includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@
includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@/@PROJECT_NAME@
libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@

Name: @PROJECT_NAME@
Expand Down

0 comments on commit 5689a57

Please sign in to comment.