Wilfried Holzke wrote:
Hi,

I try to find "Boost" within a CMakeList.txt file.

I got the following from the documentation of CMake 2.6:

*****
SET(Boost_USE_STATIC_LIBS OFF)
SET(Boost_USE_MULTITHREAD OFF)
FIND_PACKAGE(Boost 1.34.1 COMPONENTS multi_array)

if (NOT Boost_FOUND)
   message(FATAL_ERROR "Boost not found!")
ENDIF (NOT Boost_FOUND)
*****

But neither version nor components seems to be recognized or results in
an error.

If I set version to 1.44 boost is found anyway. Setting "COMPONENTS
multi_array" results in an error, but "multi_array" is installed.


Is there something wrong how I use FIND_PACKAGE(Boost ...)?

regards

  W. Holzke
_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

This seems like a bug to me. But I could be wrong. Here is my (working) boost line.
FIND_PACKAGE(Boost 1.34.1 REQUIRED COMPONENTS signals regex thread)
Adding the REQUIRED keyword removes the need for the Boost_FOUND test you have.
_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to