diff options
| author | Stephen Sinclair <radarsat1@gmail.com> | 2018-08-15 15:25:06 -0300 |
|---|---|---|
| committer | Stephen Sinclair <radarsat1@gmail.com> | 2018-08-15 15:25:06 -0300 |
| commit | 4a75d6db73f71ee52d4170e4ff988093e496cd7e (patch) | |
| tree | 9cb2cf41b6039e270bbbf97f566b3406edffc8e4 | |
| parent | be6a6c266b4acdb948ea401f2b1ccb7c4e7a107e (diff) | |
automake: Fix rtaudio.pc prefix variable
| -rw-r--r-- | CMakeLists.txt | 1 | ||||
| -rw-r--r-- | rtaudio.pc.in | 2 |
2 files changed, 2 insertions, 1 deletions
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 |
