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"