From 5dad9bed626cb9b9c53498106a7135826b139d6c Mon Sep 17 00:00:00 2001 From: Yuri Witte Date: Thu, 3 Oct 2024 14:40:36 -0300 Subject: [PATCH] allow RtAudio to be installed with FetchContent --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1be49c9a..75d549f9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ # Set minimum CMake required version for this project. -cmake_minimum_required(VERSION 3.10 FATAL_ERROR) +cmake_minimum_required(VERSION 3.13 FATAL_ERROR) # Define a C++ project. project(RtAudio LANGUAGES CXX) @@ -343,8 +343,8 @@ write_basic_package_version_file( install( FILES - ${CMAKE_BINARY_DIR}/RtAudioConfig.cmake - ${CMAKE_BINARY_DIR}/RtAudioConfig-version.cmake + ${CMAKE_CURRENT_BINARY_DIR}/RtAudioConfig.cmake + ${CMAKE_CURRENT_BINARY_DIR}/RtAudioConfig-version.cmake DESTINATION ${RTAUDIO_CMAKE_DESTINATION} )