mirror of https://github.com/mgba-emu/mgba.git
CMake: Fix Lua build with older versions
This commit is contained in:
parent
b6ec54dadf
commit
4358364830
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue