[cmake-developers] [CMake 0012402]: boost components aren't found

Mantis Bug Tracker mantis at public.kitware.com
Tue Aug 16 07:37:58 EDT 2011


The following issue has been SUBMITTED. 
====================================================================== 
http://www.cmake.org/Bug/view.php?id=12402 
====================================================================== 
Reported By:                Galeazzi
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   12402
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2011-08-16 07:37 EDT
Last Modified:              2011-08-16 07:37 EDT
====================================================================== 
Summary:                    boost components aren't found
Description: 
The findBoost module seems is not able to detect the boost library components
even setting the BOOST_LIBRARYDIR variable.

Steps to Reproduce: 
That's a simple CMakeLists.txt to reproduce the bug:
cmake_minimum_required(VERSION 2.8)
project(BoostICP)
set(Boost_DEBUG 1)
set(Boost_USE_STATIC_LIBS        ON)
set(Boost_USE_MULTITHREADED      ON)
set(BOOST_LIBRARYDIR /usr/lib64)

FIND_PACKAGE(Boost COMPONENTS date_time)
  IF (Boost_FOUND)
      INCLUDE_DIRECTORIES(${BOOST_INCLUDE_DIR})
      message(STATUS "Boost lib: ${Boost_LIBRARIES}")
  else()
      message(FATAL_ERROR "Boost not found")
  ENDIF()
  SET(SOURCES_MAIN
      ./src/main.cpp)
  set(SOURCES_
      ${SOURCES_MAIN})
  
  add_executable(Boost-ICP ${SOURCES_MAIN})
  link_directories(/usr/lib64)
  target_link_libraries(Boost-ICP ${Boost_LIBRARIES} rt)  

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-08-16 07:37 Galeazzi       New Issue                                    
======================================================================




More information about the cmake-developers mailing list