From 2768c1b17056c56c07b38a06be4d64a8a269f4f8 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 1 Jul 2013 09:12:11 +0000 Subject: [PATCH] From David Callu, "Here a fix for FindFBX.cmake under linux, library name to look for must be fbxsdk instead of libfbxsdk." --- CMakeModules/FindFBX.cmake | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeModules/FindFBX.cmake b/CMakeModules/FindFBX.cmake index adb65a3f5..8911badbe 100644 --- a/CMakeModules/FindFBX.cmake +++ b/CMakeModules/FindFBX.cmake @@ -35,7 +35,7 @@ ENDIF() IF(APPLE) SET(FBX_LIBNAME "libfbxsdk") ELSEIF(CMAKE_COMPILER_IS_GNUCXX) - SET(FBX_LIBNAME "libfbxsdk") + SET(FBX_LIBNAME "fbxsdk") ELSE() SET(FBX_LIBNAME "libfbxsdk-md") ENDIF() @@ -57,7 +57,7 @@ FIND_LIBRARY( FBX_LIBRARY ${FBX_LIBNAME} PATHS ${FBX_SEARCH_PATHS} PATH_SUFFIXES "lib/${FBX_LIBDIR}/release" "lib/${FBX_LIBDIR}") -#Once one of the calls succeeds the result variable will be set and stored in the cache so that no call will search again. +#Once one of the calls succeeds the result variable will be set and stored in the cache so that no call will search again. #no debug d suffix, search in debug folder only FIND_LIBRARY( FBX_LIBRARY_DEBUG ${FBX_LIBNAME} @@ -66,7 +66,7 @@ FIND_LIBRARY( FBX_LIBRARY_DEBUG ${FBX_LIBNAME} FIND_LIBRARY( FBX_LIBRARY_DEBUG ${FBX_LIBNAME_DEBUG} PATHS ${FBX_SEARCH_PATHS} PATH_SUFFIXES "lib/${FBX_LIBDIR}") - + IF(FBX_LIBRARY AND FBX_LIBRARY_DEBUG AND FBX_INCLUDE_DIR) SET(FBX_FOUND "YES") ELSE() @@ -108,5 +108,5 @@ IF(NOT FBX_FOUND) ELSE() SET(FBX_FOUND "NO") ENDIF() - + ENDIF()