Skip to content

Commit

Permalink
fix Boost modules on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
bouffa committed Mar 20, 2013
1 parent 0ae4bdc commit ef6cdb1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cmake/pcl_find_boost.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,16 @@ if(Boost_SERIALIZATION_FOUND)
endif(Boost_SERIALIZATION_FOUND)

# Required boost modules
find_package(Boost 1.40.0 REQUIRED COMPONENTS system filesystem thread date_time iostreams)

set(BOOST_REQUIRED_MODULES system filesystem thread date_time iostreams)
# Starting with Boost 1.50, boost_thread depends on chrono. As this is not
# taken care of automatically on Windows, we add an explicit dependency as a
# workaround.
if(WIN32 AND Boost_VERSION VERSION_GREATER "104900")
find_package(Boost 1.40.0 REQUIRED COMPONENTS chrono)
set(BOOST_REQUIRED_MODULES ${BOOST_REQUIRED_MODULES} chrono)
endif(WIN32 AND Boost_VERSION VERSION_GREATER "104900")

find_package(Boost 1.40.0 REQUIRED COMPONENTS ${BOOST_REQUIRED_MODULES})

if(Boost_FOUND)
set(BOOST_FOUND TRUE)
# Obtain diagnostic information about Boost's automatic linking outputted
Expand Down

0 comments on commit ef6cdb1

Please sign in to comment.