MantisBT - CMake
View Issue Details
0012402CMakeCMakepublic2011-08-16 07:372016-06-10 14:31
Galeazzi 
Philip Lowman 
normalminoralways
closedmoved 
x86_64LinuxFedora 15 64bit
CMake 2.8.4 
 
0012402: boost components aren't found
The findBoost module seems is not able to detect the boost library components even setting the BOOST_LIBRARYDIR variable.
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)
No tags attached.
Issue History
2011-08-16 07:37GaleazziNew Issue
2011-08-16 08:17Brad KingAssigned To => Philip Lowman
2011-08-16 08:17Brad KingStatusnew => assigned
2011-10-21 23:38McBenNote Added: 0027610
2011-10-21 23:39McBenNote Edited: 0027610bug_revision_view_page.php?rev_id=437
2011-10-22 00:01McBenNote Deleted: 0027610
2016-06-10 14:28Kitware RobotNote Added: 0041885
2016-06-10 14:28Kitware RobotStatusassigned => resolved
2016-06-10 14:28Kitware RobotResolutionopen => moved
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0041885)
Kitware Robot   
2016-06-10 14:28   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.