Skip to content

Commit

Permalink
Better CMake install target
Browse files Browse the repository at this point in the history
  • Loading branch information
bamless committed Jul 16, 2023
1 parent 5c3ce00 commit 508c9e5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cmake/jstar.pc.in
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

prefix="@CMAKE_INSTALL_PREFIX@"
exec_prefix="${prefix}"
libdir="${prefix}/lib"
includedir="${prefix}/include"
libdir="${prefix}/@CMAKE_INSTALL_LIBDIR@"
includedir="${prefix}/@CMAKE_INSTALL_INCLUDEDIR@"

Name: @PROJECT_NAME@
Description: @CMAKE_PROJECT_DESCRIPTION@
Expand Down
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,6 @@ if(JSTAR_INSTALL)
)
install(
FILES ${CMAKE_BINARY_DIR}/jstar.pc
DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkg-config
DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig
)
endif()

0 comments on commit 508c9e5

Please sign in to comment.