Accept multiple SDK versions as valid.
This commit is contained in:
parent
891cf668b9
commit
b475fbead4
|
@ -14,14 +14,19 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}")
|
||||||
include(ExternalProject)
|
include(ExternalProject)
|
||||||
|
|
||||||
# FBX
|
# 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)
|
if (NOT FBXSDK_FOUND)
|
||||||
message(FATAL_ERROR
|
message(FATAL_ERROR
|
||||||
"Can't find FBX SDK in either:\n"
|
"Can't find FBX SDK in either:\n"
|
||||||
" - Mac OS X: ${FBXSDK_APPLE_ROOT}\n"
|
" - Mac OS X: ${FBXSDK_APPLE_ROOT}\n"
|
||||||
" - Windows: ${FBXSDK_WINDOWS_ROOT}\n"
|
" - Windows: ${FBXSDK_WINDOWS_ROOT}\n"
|
||||||
" - Linux: ${FBXSDK_LINUX_ROOT}"
|
" - Linux: ${FBXSDK_LINUX_ROOT}"
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# DRACO
|
# DRACO
|
||||||
|
|
|
@ -21,7 +21,9 @@ else()
|
||||||
set(ARCH_32 OFF)
|
set(ARCH_32 OFF)
|
||||||
endif()
|
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")
|
set(_fbxsdk_vstudio_version "vs2015")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue