Skip to content

Commit d3ea65f

Browse files
committed
Fixed the path to includes. It should not be hardcoded, rather it should be taken from CMake variables.
1 parent 3003f9f commit d3ea65f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ target_include_directories(
5353
lyra
5454
INTERFACE
5555
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>
56-
$<INSTALL_INTERFACE:include>
56+
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
5757
)
5858

5959
# Add an alias to public name.
@@ -83,8 +83,8 @@ install(
8383
)
8484

8585
install(
86-
DIRECTORY ${PROJECT_SOURCE_DIR}/include
87-
DESTINATION ${CMAKE_INSTALL_PREFIX}
86+
DIRECTORY ${PROJECT_SOURCE_DIR}/include/lyra
87+
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
8888
)
8989

9090
install(

data/pkgconfig/pkgconfig.pc.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
prefix=@CMAKE_INSTALL_PREFIX@
2-
includedir=${prefix}/include
2+
includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@
33

44
Name: @PROJECT_NAME@
55
Description: @PROJECT_DESCRIPTION@

0 commit comments

Comments
 (0)