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 Oct 21, 2021
1 parent 30894d7 commit e766efb
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 e766efb

Please sign in to comment.