From 06123926c498b07d964caee93f69504d88077d59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sun, 19 Jul 2026 19:34:51 +0200 Subject: [PATCH] modules: updated FindCorrade.cmake. --- modules/FindCorrade.cmake | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/modules/FindCorrade.cmake b/modules/FindCorrade.cmake index 7f4dd11af..e63e2ef66 100644 --- a/modules/FindCorrade.cmake +++ b/modules/FindCorrade.cmake @@ -10,7 +10,6 @@ # following: # # Corrade_FOUND - Whether the base library was found -# CORRADE_LIB_SUFFIX_MODULE - Path to CorradeLibSuffix.cmake module # # This command will try to find only the base library, not the optional # components, which are: @@ -23,8 +22,9 @@ # rc - corrade-rc executable # # If Corrade is built with CORRADE_BUILD_DEPRECATED enabled, these additional -# libraries are available for backwards compatibility purposes: +# variables and libraries are available for backwards compatibility purposes: # +# CORRADE_LIB_SUFFIX_MODULE - Path to the CorradeLibSuffix.cmake module # Interconnect - Interconnect library # # Example usage with specifying additional components is:: @@ -375,7 +375,9 @@ if(CORRADE_TARGET_EMSCRIPTEN) endif() set(CORRADE_USE_MODULE ${_CORRADE_MODULE_DIR}/UseCorrade.cmake) -set(CORRADE_LIB_SUFFIX_MODULE ${_CORRADE_MODULE_DIR}/CorradeLibSuffix.cmake) +if(CORRADE_BUILD_DEPRECATED) + set(CORRADE_LIB_SUFFIX_MODULE ${_CORRADE_MODULE_DIR}/CorradeLibSuffix.cmake) +endif() # Component distinction (listing them explicitly to avoid mistakes with finding # unknown components)