Skip to content

Commit 2ef3ff2

Browse files
committed
build: install headers into a subdir
1 parent ebd51ad commit 2ef3ff2

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
@@ -24,7 +24,7 @@ install(TARGETS pystring
2424
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
2525
)
2626
install (FILES pystring.h
27-
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
27+
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${PROJECT_NAME}
2828
COMPONENT developer
2929
)
3030

meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ test(
3737
),
3838
)
3939

40-
install_headers(hdrs)
40+
install_headers(hdrs, subdir: 'pystring')
4141

4242
pkgconfig = import('pkgconfig')
4343
pkgconfig.generate(

0 commit comments

Comments
 (0)