Accept multiple SDK versions as valid.

This commit is contained in:
Par Winzell 2018-09-13 12:30:06 -07:00
parent 891cf668b9
commit b475fbead4
2 changed files with 10 additions and 3 deletions

View File

@ -14,7 +14,12 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}")
include(ExternalProject)
# FBX
find_package(FBX REQUIRED)
foreach (FBXSDK_VERSION "2019.0" "2018.1.1")
find_package(FBX)
if (FBXSDK_FOUND)
break()
endif()
endforeach(FBXSDK_VERSION)
if (NOT FBXSDK_FOUND)
message(FATAL_ERROR
"Can't find FBX SDK in either:\n"

View File

@ -21,7 +21,9 @@ else()
set(ARCH_32 OFF)
endif()
set(FBXSDK_VERSION "2018.1.1" CACHE STRING "Precise version string of FBX SDK to use.")
if (NOT DEFINED FBXSDK_VERSION)
set(FBXSDK_VERSION "2018.1.1")
endif()
set(_fbxsdk_vstudio_version "vs2015")