[CMake] CMake 2.8.6 RC3 FindBoost Regression Error

Michael Jackson mike.jackson at bluequartz.net
Thu Sep 22 12:14:51 EDT 2011


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



More information about the CMake mailing list