[CMake] CMake 2.8.6 RC3 FindBoost Regression Error

David Cole david.cole at kitware.com
Thu Sep 22 14:41:50 EDT 2011


Philip and Todd have been the recent authors/committers in FindBoost.cmake.

Any comments on this one, guys?


Thanks,
David


On Thu, Sep 22, 2011 at 12:23 PM, Michael Jackson
<mike.jackson at bluequartz.net> wrote:
> Semi Answering my own question if I "set (Boost_NO_BOOST_CMAKE 1)" my project seems to configure ok.
>  So I guess that is new.
> ___________________________________________________________
> Mike Jackson                      www.bluequartz.net
> Principal Software Engineer       mike.jackson at bluequartz.net
> BlueQuartz Software               Dayton, Ohio
>
> On Sep 22, 2011, at 12:14 PM, Michael Jackson wrote:
>
>> There seems to be either a regression or my project has been slipping through the cracks with respect to FindBoost. I have the following CMake code in my project:
>>
>>
>> # ---------- Find Boost Headers/Libraries -----------------------
>> SET (Boost_FIND_REQUIRED TRUE)
>> SET (Boost_DEBUG FALSE)
>> set (Boost_USE_MULTITHREADED TRUE)
>> set (Boost_USE_STATIC_LIBS TRUE)
>> SET (Boost_ADDITIONAL_VERSIONS "1.47.0" "1.46.0" "1.44.0" "1.44" "1.41" "1.41.0" "1.39" "1.39.0")
>> set (Boost_FIND_COMPONENTS "")
>> FIND_PACKAGE(Boost COMPONENTS  ${Boost_FIND_COMPONENTS} )
>> INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS})
>> LINK_DIRECTORIES(${Boost_LIBRARY_DIRS})
>>
>> Under CMake 2.8.5 (all prior) this worked just fine. Now with CMake 2.8.6 I get the following error:
>>
>>
>> globbed: ../../boost-1.41.0//cmake//BoostConfig.cmake;../../boost-1.44.0//cmake//BoostConfig.cmake
>> FOUNDVERSION=1.44.0
>> CMake Error at /Users/Shared/Toolkits/MXABoost-1.44/share/boost-1.44.0/cmake/BoostConfig.cmake:87 (message):
>>  Boost components not found: thread;program_options;date_time
>> Call Stack (most recent call first):
>>  /Users/Shared/Toolkits/MXABoost-1.44/share/cmake/boost/BoostConfig.cmake:15 (include)
>>  /Users/Shared/Toolkits/CMake-2.8.6/CMake-2.8.6.app/Contents/share/cmake-2.8/Modules/FindBoost.cmake:282 (find_package)
>>  CMakeLists.txt:144 (FIND_PACKAGE)
>>
>>
>> -- Configuring incomplete, errors occurred!
>>
>> I dug into the FindBoost.cmake file that comes with RC3 and started reading the docs at the top. It states that if I am using Boost Headers only then I can leave out the "COMPONENTS" part. I changed my CMakeLists.txt file to reflect this and I still get the error.
>>
>> Operator Error or regression?
>>
>> ___________________________________________________________
>> Mike Jackson                      www.bluequartz.net
>> Principal Software Engineer       mike.jackson at bluequartz.net
>> BlueQuartz Software               Dayton, Ohio
>>
>
> --
>
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>


More information about the CMake mailing list