Skip to content

Commit

Permalink
cmake/pkgconfig: use CMAKE_INSTALL_FULL_* variables
Browse files Browse the repository at this point in the history
See: https://cmake.org/cmake/help/latest/module/GNUInstallDirs.html

Signed-off-by: Doron Behar <doron.behar@gmail.com>
  • Loading branch information
doronbehar committed Jul 27, 2024
1 parent 6cfa5b2 commit 23263cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
6 changes: 0 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -220,12 +220,6 @@ include(GNUInstallDirs)
########################################################################
# Setup the package config file
########################################################################
#set variables found in the pc.in file
set(prefix ${CMAKE_INSTALL_PREFIX})
set(exec_prefix "\${prefix}")
set(libdir "\${exec_prefix}/${CMAKE_INSTALL_LIBDIR}")
set(includedir "\${prefix}/include")

configure_file(${CMAKE_CURRENT_SOURCE_DIR}/tmpl/volk.pc.in
${CMAKE_CURRENT_BINARY_DIR}/volk.pc @ONLY)

Expand Down
8 changes: 4 additions & 4 deletions tmpl/volk.pc.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
prefix=@CMAKE_INSTALL_PREFIX@
exec_prefix=@CMAKE_INSTALL_PREFIX@
libdir=@CMAKE_INSTALL_FULL_LIBDIR@
includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@
LV_CXXFLAGS=@LV_CXXFLAGS@


Expand Down

0 comments on commit 23263cb

Please sign in to comment.