Skip to content

Commit

Permalink
Fixed the path to includes. It should not be hardcoded, rather it sho…
Browse files Browse the repository at this point in the history
…uld be taken from CMake variables.
  • Loading branch information
KOLANICH committed Jan 17, 2023
1 parent 8c3098b commit 3d69d37
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ target_include_directories(
lyra
INTERFACE
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
)

# Add an alias to public name.
Expand Down Expand Up @@ -83,8 +83,8 @@ install(
)

install(
DIRECTORY ${PROJECT_SOURCE_DIR}/include
DESTINATION ${CMAKE_INSTALL_PREFIX}
DIRECTORY ${PROJECT_SOURCE_DIR}/include/lyra
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
)

install(
Expand Down
2 changes: 1 addition & 1 deletion data/pkgconfig/pkgconfig.pc.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
prefix=@CMAKE_INSTALL_PREFIX@
includedir=${prefix}/include
includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@

Name: @PROJECT_NAME@
Description: @PROJECT_DESCRIPTION@
Expand Down

0 comments on commit 3d69d37

Please sign in to comment.