From Michael Platings, "Autodesk have re-released 2011.3 of the FBX SDK with Visual Studio 2010 support ( http://images.autodesk.com/adsk/files/fbx20113_fbxsdk_win_static.exe ). I've attached an updated FindFBX.cmake that supports this latest version but also retains support for FBX 2011.2 for those who don't want to update."

This commit is contained in:
Robert Osfield
2010-07-10 09:56:06 +00:00
parent 3cd08d7730
commit f697988586

View File

@@ -18,8 +18,10 @@ ELSEIF(MSVC71)
SET(FBX_LIBNAME "fbxsdk_md2003")
ELSEIF(MSVC80)
SET(FBX_LIBNAME "fbxsdk_md2005")
ELSEIF(MSVC90 OR MSVC_VER>1500)
ELSEIF(MSVC90)
SET(FBX_LIBNAME "fbxsdk_md2008")
ELSEIF(MSVC100 OR MSVC_VER>1600)
SET(FBX_LIBNAME "fbxsdk_md2010")
ENDIF()
IF(CMAKE_CL_64)
@@ -33,8 +35,11 @@ ELSE()
ENDIF()
# SET final path
#osg_fbx code is compatible with 2011.2 and 2011.3 so find either directory
SET( FBX_SEARCH_PATHS
$ENV{FBX_DIR}
$ENV{PROGRAMFILES}/Autodesk/FBX/FbxSdk/2011.3
/Applications/Autodesk/FBXSDK20113
$ENV{PROGRAMFILES}/Autodesk/FBX/FbxSdk/2011.2
/Applications/Autodesk/FBXSDK20112
)