Add workaround for submodules that use legacy CMAKE variables

This commit is contained in:
James Rowe
2020-05-08 13:41:23 -06:00
parent 3f4647ebc7
commit a9646d774a

View File

@@ -178,6 +178,9 @@ macro(yuzu_find_packages)
endif()
if (NOT ${PACKAGE_PREFIX}_FOUND)
list(APPEND CONAN_REQUIRED_LIBS ${PACKAGE_CONAN})
else()
# Set a legacy findPackage.cmake style PACKAGE_LIBRARIES variable for subprojects that rely on this
set(${PACKAGE_PREFIX}_LIBRARIES "${PACKAGE_PREFIX}::${PACKAGE_PREFIX}")
endif()
endforeach()
unset(FN_FORCE_REQUIRED)