From 4a75d6db73f71ee52d4170e4ff988093e496cd7e Mon Sep 17 00:00:00 2001 From: Stephen Sinclair Date: Wed, 15 Aug 2018 15:25:06 -0300 Subject: [PATCH] automake: Fix rtaudio.pc prefix variable --- CMakeLists.txt | 1 + rtaudio.pc.in | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9e4060a..2ce3b4b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -257,6 +257,7 @@ message(STATUS "Compiling with support for: ${apilist}") # PkgConfig file string(REPLACE ";" " " req "${PKGCONFIG_REQUIRES}") string(REPLACE ";" " " api "${API_DEFS}") +set(prefix ${CMAKE_INSTALL_PREFIX}) configure_file("rtaudio.pc.in" "rtaudio.pc" @ONLY) # Add install rule. diff --git a/rtaudio.pc.in b/rtaudio.pc.in index 7627780..0e81090 100644 --- a/rtaudio.pc.in +++ b/rtaudio.pc.in @@ -1,4 +1,4 @@ -prefix=@CMAKE_INSTALL_PREFIX@ +prefix=@prefix@ exec_prefix=${prefix} libdir=${exec_prefix}/lib includedir=${prefix}/include/rtaudio -- 2.30.2