From 021df8fa72a6de902add48fd7ff87017a7f89775 Mon Sep 17 00:00:00 2001 From: bejuryu Date: Mon, 16 Oct 2017 19:00:42 +0900 Subject: [PATCH] fixed cmake install error : rtaudio.pc error --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 54f8816..1ea5252 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -125,6 +125,8 @@ if (BUILD_TESTING) add_subdirectory(tests) endif (BUILD_TESTING) +configure_file("rtaudio.pc.in" "rtaudio.pc" @ONLY) + install(TARGETS rtaudio LIBRARY DESTINATION lib ARCHIVE DESTINATION lib @@ -135,5 +137,5 @@ install( DESTINATION include) install( - FILES rtaudio.pc + FILES ${CMAKE_CURRENT_BINARY_DIR}/rtaudio.pc DESTINATION lib/pkgconfig)