# Find Boost
# Prefer static linking in all cases
if (NOT OGRE_BUILD_PLATFORM_IPHONE)
if (WIN32 OR APPLE)
set(Boost_USE_STATIC_LIBS TRUE)
else ()
# Statically linking boost to a dynamic Ogre build doesn't work on Linux 64bit
set(Boost_USE_STATIC_LIBS ${OGRE_STATIC})
endif ()
set(Boost_ADDITIONAL_VERSIONS "1.38.0" "1.38" "1.39.0" "1.39" "1.40.0" "1.40" "1.44.0" "1.44" "1.45" "1.46" "1.47" "1.48" "1.49" "1.49.0" "1.50" "1.50.0")
# Components that need linking (NB does not include header-only components like bind)
set(OGRE_BOOST_COMPONENTS thread date_time regex)
find_package(Boost COMPONENTS ${OGRE_BOOST_COMPONENTS} QUIET)
if (NOT Boost_FOUND)
# Try again with the other type of libs
set(Boost_USE_STATIC_LIBS NOT ${Boost_USE_STATIC_LIBS})
find_package(Boost COMPONENTS ${OGRE_BOOST_COMPONENTS} QUIET)
endif()
if (Boost_FOUND AND WIN32)
if(Boost_VERSION GREATER 104700)
set(OGRE_BOOST_COMPONENTS thread date_time regex system)
endif(Boost_VERSION GREATER 104700)
if(Boost_VERSION GREATER 104900)
set(OGRE_BOOST_COMPONENTS thread date_time regex system chrono)
endif(Boost_VERSION GREATER 104900)
find_package(Boost COMPONENTS ${OGRE_BOOST_COMPONENTS} QUIET)
endif(Boost_FOUND AND WIN32)
find_package(Boost QUIET)
endif(NOT OGRE_BUILD_PLATFORM_IPHONE)
My guess is that BOOST_Found is false in your script.
Actually, I think I'm 98% sure it's not since the find boost script is not run for your script.
It's all about scope.
So run it again, like we do for Ogitor (see above).
/* Less noise. More signal. */ Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion. OgreAddons - the Ogre code suppository.
For MSVC you must also disable the automatic linking from Boost headers, or you may run into trouble. The error message you posted actually indicates this may be the problem.
There's a preprocessor define for this purpose, I forgot its name, though.