Add workaround for submodules that use legacy CMAKE variables
This commit is contained in:
@@ -178,6 +178,9 @@ macro(yuzu_find_packages)
|
|||||||
endif()
|
endif()
|
||||||
if (NOT ${PACKAGE_PREFIX}_FOUND)
|
if (NOT ${PACKAGE_PREFIX}_FOUND)
|
||||||
list(APPEND CONAN_REQUIRED_LIBS ${PACKAGE_CONAN})
|
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()
|
endif()
|
||||||
endforeach()
|
endforeach()
|
||||||
unset(FN_FORCE_REQUIRED)
|
unset(FN_FORCE_REQUIRED)
|
||||||
|
|||||||
Reference in New Issue
Block a user