From ebed81099dc490995600a737e05766b5d97f46f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pedro=20L=C3=B3pez-Cabanillas?= Date: Sat, 31 Jul 2021 23:16:37 +0200 Subject: [PATCH] Clarifications --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index a26cfadf..166de801 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -873,6 +873,10 @@ write_basic_package_version_file( COMPATIBILITY SameMinorVersion ) +# Here, configure_file() is used instead of the more orthodox macro +# configure_package_config_file() because the latter does not +# support generating a config.cmake file for both the installed +# package and for using the build directory directly. configure_file(FluidSynthConfig.cmake.in FluidSynthConfig.cmake @ONLY) install(FILES "${CMAKE_CURRENT_BINARY_DIR}/FluidSynthConfig.cmake" "${CMAKE_CURRENT_BINARY_DIR}/FluidSynthConfigVersion.cmake"