diff options
Diffstat (limited to 'ports/forge/fix-usage.patch')
| -rw-r--r-- | ports/forge/fix-usage.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/ports/forge/fix-usage.patch b/ports/forge/fix-usage.patch new file mode 100644 index 000000000..5ce05e249 --- /dev/null +++ b/ports/forge/fix-usage.patch @@ -0,0 +1,29 @@ +diff --git a/CMakeModules/ForgeConfig.cmake.in b/CMakeModules/ForgeConfig.cmake.in +index e4c7737..6429069 100644 +--- a/CMakeModules/ForgeConfig.cmake.in ++++ b/CMakeModules/ForgeConfig.cmake.in +@@ -52,16 +52,18 @@ set(Forge_FOUND OFF) + + if (NOT TARGET Forge::forge AND + NOT TARGET forge AND +- EXISTS @PACKAGE_CMAKE_DIR@/ForgeTargets.cmake) +- include(@PACKAGE_CMAKE_DIR@/ForgeTargets.cmake) ++ EXISTS ${CMAKE_CURRENT_LIST_DIR}/ForgeTargets.cmake) ++ include(${CMAKE_CURRENT_LIST_DIR}/ForgeTargets.cmake) + endif () + + if (TARGET Forge::forge) +- get_property(config TARGET Forge::forge PROPERTY IMPORTED_CONFIGURATIONS) +- if(NOT config) +- set(config "NOCONFIG") ++ get_property(configs TARGET Forge::forge PROPERTY IMPORTED_CONFIGURATIONS) ++ if(NOT configs) ++ set(configs "NOCONFIG") + endif() +- get_property(loc TARGET Forge::forge PROPERTY IMPORTED_LOCATION_${config}) ++ foreach(config ${configs}) ++ get_property(loc TARGET Forge::forge PROPERTY IMPORTED_LOCATION_${config}) ++ endforeach() + endif () + + if ((TARGET Forge::forge AND EXISTS ${loc}) |
