From 43583648305a87063a034c5637570352ac8d2dee Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Sun, 29 May 2022 13:53:04 -0700 Subject: [PATCH] CMake: Fix Lua build with older versions --- src/platform/cmake/FindFeature.cmake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/platform/cmake/FindFeature.cmake b/src/platform/cmake/FindFeature.cmake index 4a3fa5276..afb2393dd 100644 --- a/src/platform/cmake/FindFeature.cmake +++ b/src/platform/cmake/FindFeature.cmake @@ -43,6 +43,11 @@ function(find_feature FEATURE_NAME FEATURE_REQUIRES) elseif(DEFINED ${UREQUIRE}_INCLUDE_DIRS) set(${UREQUIRE}_INCLUDE_DIRS ${${UREQUIRE}_INCLUDE_DIRS} PARENT_SCOPE) endif() + if(DEFINED ${REQUIRE}_INCLUDE_DIR) + set(${UREQUIRE}_INCLUDE_DIR ${${REQUIRE}_INCLUDE_DIR} PARENT_SCOPE) + elseif(DEFINED ${UREQUIRE}_INCLUDE_DIR) + set(${UREQUIRE}_INCLUDE_DIR ${${UREQUIRE}_INCLUDE_DIR} PARENT_SCOPE) + endif() if(DEFINED ${REQUIRE}_VERSION_STRING) set(${UREQUIRE}_VERSION_STRING ${${REQUIRE}_VERSION_STRING} PARENT_SCOPE) elseif(DEFINED ${UREQUIRE}_VERSION_STRING)