From 0f899a2a1ee912d237f18284520fa00eb51f1a80 Mon Sep 17 00:00:00 2001 From: Laurens Voerman Date: Fri, 24 Feb 2017 15:54:07 +0100 Subject: [PATCH] added FBX SDK 2017.1 and try to add apple (clang) support (not tested - I have no apple) --- CMakeModules/FindFBX.cmake | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CMakeModules/FindFBX.cmake b/CMakeModules/FindFBX.cmake index a5f4135bc..ab0a2c2d8 100644 --- a/CMakeModules/FindFBX.cmake +++ b/CMakeModules/FindFBX.cmake @@ -9,7 +9,12 @@ # correspond to the ./configure --prefix=$FBX_DIR IF(APPLE) + if (CMAKE_CXX_COMPILER_ID MATCHES "Clang") + # using regular Clang or AppleClang + SET(FBX_LIBDIR "clang") + else() SET(FBX_LIBDIR "gcc4/ub") + endif() ELSEIF(CMAKE_COMPILER_IS_GNUCXX) SET(FBX_LIBDIR "gcc4") ELSEIF(MSVC80) @@ -55,6 +60,9 @@ SET(FBX_LIBNAME_DEBUG ${FBX_LIBNAME}d) SET( FBX_SEARCH_PATHS $ENV{FBX_DIR} + "$ENV{ProgramW6432}/Autodesk/FBX/FBX SDK/2017.1" + "$ENV{PROGRAMFILES}/Autodesk/FBX/FBX SDK/2017.1" + "/Applications/Autodesk/FBX SDK/2017.1" "$ENV{ProgramW6432}/Autodesk/FBX/FBX SDK/2016.1.1" "$ENV{PROGRAMFILES}/Autodesk/FBX/FBX SDK/2016.1.1" "$ENV{ProgramW6432}/Autodesk/FBX/FBX SDK/2015.1"