add lib to lib dirs for win and linux

This commit is contained in:
Stephen Birarda 2014-12-15 14:02:55 -08:00
parent e8ea45efde
commit f63aa44d01

View file

@ -41,9 +41,9 @@ elseif (UNIX)
)
if (GCC_VERSION VERSION_GREATER 4.4 OR GCC_VERSION VERSION_EQUAL 4.4)
set(_TBB_LIB_DIR "${_TBB_ARCH_DIR}/gcc4.4")
set(_TBB_LIB_DIR "lib/${_TBB_ARCH_DIR}/gcc4.4")
elseif (GCC_VERSION VERSION_GREATER 4.1 OR GCC_VERSION VERSION_EQUAL 4.1)
set(_TBB_LIB_DIR "${_TBB_ARCH_DIR}/gcc4.1")
set(_TBB_LIB_DIR "lib/${_TBB_ARCH_DIR}/gcc4.1")
else ()
message(FATAL_ERROR "Could not find a compatible version of Threading Building Blocks library for your compiler.")
endif ()
@ -55,7 +55,7 @@ elseif (WIN32)
set(_TBB_ARCH_DIR "ia32")
endif()
set(_TBB_LIB_DIR "${_TBB_ARCH_DIR}/vc12")
set(_TBB_LIB_DIR "lib/${_TBB_ARCH_DIR}/vc12")
endif ()
find_library(TBB_LIBRARY_DEBUG NAMES ${_TBB_LIB_NAME}_debug PATH_SUFFIXES ${_TBB_LIB_DIR} HINTS ${TBB_SEARCH_DIRS})