Skip to content

Commit 5689a57

Browse files
committed
Make includedir in pkgconfig point to the iniparser directory
This reverts commit 4b1e33a which was the result of a misunderstanding regarding issue #165. The issue was not about the actual header location but, as its title already states: "includedir should point to the iniparser directory".
1 parent d0970a5 commit 5689a57

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ foreach(TARGET_TYPE ${TARGET_TYPES})
6868
EXPORT ${TARGETS_EXPORT_NAME}
6969
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
7070
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
71-
PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
71+
PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${PROJECT_NAME})
7272

7373
# build directory package config
7474
export(

cmake/pc.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
prefix=@CMAKE_INSTALL_PREFIX@
22
exec_prefix=${prefix}
3-
includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@
3+
includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@/@PROJECT_NAME@
44
libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@
55

66
Name: @PROJECT_NAME@

0 commit comments

Comments
 (0)