shithub: opusfile

Download patch

ref: e49d2c5ba65312b67e2603361904fe0851db116f
parent: 8d742acb994cb7a556c09347462d6c406ccbc5d3
author: Hendrik <git@h3ndrk.de>
date: Sat May 29 09:09:48 EDT 2021

Include targets from all configurations

Signed-off-by: Ralph Giles <giles@thaumas.net>
Signed-off-by: evpobr <evpobr@gmail.com>

--- a/opusfileConfig.cmake
+++ b/opusfileConfig.cmake
@@ -4,5 +4,11 @@
   Opus
 )
 
-# TODO: include(...opusfileTargets-debug.cmake)?
 include("${CMAKE_CURRENT_LIST_DIR}/opusfileTargets.cmake")
+
+# Load information for each installed configuration.
+get_filename_component(_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
+file(GLOB CONFIG_FILES "${_DIR}/opusfileTargets-*.cmake")
+foreach(f ${CONFIG_FILES})
+  include(${f})
+endforeach()