Commit a234ca84 authored by Thomas Moulard's avatar Thomas Moulard
Browse files

Switch to new Boost detection macro.

parent 318fa961
......@@ -16,6 +16,7 @@
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
INCLUDE(cmake/base.cmake)
INCLUDE(cmake/boost.cmake)
SET(PROJECT_NAME dynamic-graph)
SET(PROJECT_VERSION 1.0.0.99)
......@@ -46,13 +47,7 @@ plugindir=${CMAKE_INSTALL_PREFIX}/${PLUGINDIR}")
SET(PKG_CONFIG_LIBS "${PKG_CONFIG_LIBS} ${LIBINCL_KW}dynamic-graph${LIB_EXT}")
# Search for Boost.
SET(Boost_USE_STATIC_LIBS OFF)
SET(Boost_USE_MULTITHREAD ON)
FIND_PACKAGE(Boost 1.33 COMPONENTS thread REQUIRED)
SET(PKG_CONFIG_CFLAGS "${PKG_CONFIG_CFLAGS} -I${Boost_INCLUDE_DIR}")
SET(PKG_CONFIG_LIBS "${PKG_CONFIG_LIBS} ${LIBDIR_KW}${Boost_LIBRARY_DIRS}")
ADD_DEFINITIONS(-DHAVE_LIBBOOST_THREAD)
SEARCH_FOR_BOOST()
# Search for Pthread.
INCLUDE(FindThreads)
......
Subproject commit 0fe8e6ab98f646f0341ec9a0ca29ea90773fb5c8
Subproject commit df5b81fbedf9496ec421ed2f5455a85389c5b987
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment