CMake: Fix Lua build with older versions

This commit is contained in:
Vicki Pfau 2022-05-29 13:53:04 -07:00
parent b6ec54dadf
commit 4358364830
1 changed files with 5 additions and 0 deletions

View File

@ -43,6 +43,11 @@ function(find_feature FEATURE_NAME FEATURE_REQUIRES)
elseif(DEFINED ${UREQUIRE}_INCLUDE_DIRS) elseif(DEFINED ${UREQUIRE}_INCLUDE_DIRS)
set(${UREQUIRE}_INCLUDE_DIRS ${${UREQUIRE}_INCLUDE_DIRS} PARENT_SCOPE) set(${UREQUIRE}_INCLUDE_DIRS ${${UREQUIRE}_INCLUDE_DIRS} PARENT_SCOPE)
endif() 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) if(DEFINED ${REQUIRE}_VERSION_STRING)
set(${UREQUIRE}_VERSION_STRING ${${REQUIRE}_VERSION_STRING} PARENT_SCOPE) set(${UREQUIRE}_VERSION_STRING ${${REQUIRE}_VERSION_STRING} PARENT_SCOPE)
elseif(DEFINED ${UREQUIRE}_VERSION_STRING) elseif(DEFINED ${UREQUIRE}_VERSION_STRING)