Skip to content

Commit

Permalink
CMake dependency to boost regex
Browse files Browse the repository at this point in the history
  • Loading branch information
tnarihi committed Apr 8, 2015
1 parent 471e71d commit 7b96527
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmake/Dependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,11 @@ if(BUILD_python)
add_definitions(-DWITH_PYTHON_LAYER)
include_directories(SYSTEM ${PYTHON_INCLUDE_DIRS} ${NUMPY_INCLUDE_DIR} ${Boost_INCLUDE_DIRS})
list(APPEND Caffe_LINKER_LIBS ${PYTHON_LIBRARIES} ${Boost_LIBRARIES})
find_package(Boost 1.46 COMPONENTS regex)
if (Boost_REGEX_FOUND)
include_directories(SYSTEM ${Boost_INCLUDE_DIRS})
list(APPEND Caffe_LINKER_LIBS ${Boost_LIBRARIES})
endif()
endif()
endif()
endif()
Expand Down

0 comments on commit 7b96527

Please sign in to comment.