[CMake] Problem with FindBoost

Michael Jackson mike.jackson at bluequartz.net
Sun Jan 11 17:56:04 EST 2009


Couple of comments:
   Where _exactly_ do you have Boost installed. FindBoost looks for in  
very specific locations for a very specific set of folders.

Also, is multi_array an actual compiled library in boost? I can't  
remember. If is NOT a compiled library then you don't need to list it  
as a component.

Just my thoughts.
_________________________________________________________
Mike Jackson                  mike.jackson at bluequartz.net
BlueQuartz Software                    www.bluequartz.net
Principal Software Engineer                  Dayton, Ohio



On Jan 11, 2009, at 5:48 PM, Christopher Harvey wrote:

> 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 at 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 at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake



More information about the CMake mailing list