Browse Source

CPP: Fix CMakeLists to require Boost datetime needed by Boost thread.

This also makes the library link with the Boost static libs on Windows.

Review URL: http://codereview.appspot.com/5430053
pull/567/head
Philippe Liard 14 years ago
committed by Mihaela Rosca
parent
commit
e858b09822
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      cpp/CMakeLists.txt

+ 5
- 2
cpp/CMakeLists.txt View File

@ -73,9 +73,12 @@ option ("USE_RE2" "Use RE2" "OFF")
option ("USE_STD_MAP" "Force the use of std::map" "OFF")
# Find all the required libraries and programs.
find_package (Boost 1.40.0 COMPONENTS thread)
if (WIN32)
set (Boost_USE_STATIC_LIBS ON)
endif ()
find_package (Boost 1.40.0 COMPONENTS date_time thread)
if (NOT Boost_FOUND)
print_error ("Boost Thread" "Boost")
print_error ("Boost Datetime/Thread" "Boost")
endif ()
include_directories (${Boost_INCLUDE_DIRS})


Loading…
Cancel
Save