On 18.07.08 09:43:29, nilitonilito nilitonilito wrote: > I'm trying to detect libboost in my CMake root script, it works except for > min version, I can put any kind of min version it always pass the test, I > don't understand what I'm doing wrong? > > here is a snippet of my script : > > SET(BOOST_MIN_VERSION "2.33.2") > > FIND_PACKAGE(Boost REQUIRED) > > if (NOT Boost_FOUND) > message(FATAL_ERROR "Fatal error: Boost (version >= x.x.x) required.\n" > ) > endif (NOT Boost_FOUND) > > > > That script does not halt and my version of Boost is 1.33.1, whatever I put > as BOOST_MIN_VERSION it keeps on. I also tried to replace BOOST_MIN_VERSION > by Boost_MIN_VERSION but same result.
Are you using CMake 2.4 or CMake 2.6? The former doesn't support that variable and the latter doesn't either as CMake allows to specify the version in the find_package() call. See the top of FindBoost.cmake for some documentation. Andreas -- You have no real enemies. _______________________________________________ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake