File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -11,12 +11,12 @@ include(${CMAKE_MODULE_PATH}/DownloadProject/DownloadProject.cmake)
1111
1212#Boost
1313set (BOOST_REQUESTED_VERSION 1.58.0)
14- find_package (Boost)
15- if (Boost_FOUND)
16- include_directories (${Boost_INCLUDE_DIRS} )
17- else ()
18- message (FATAL_ERROR "Your need the Boost header files for lockfree data structures" )
14+ find_package (Boost COMPONENTS atomic)
15+ if (NOT Boost_FOUND)
16+ message (FATAL_ERROR "You need the Boost header files for lockfree data structures" )
1917endif ()
18+ #
19+ include_directories (${Boost_INCLUDE_DIRS} )
2020
2121#Common flags and variables
2222set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14" )
@@ -36,7 +36,7 @@ file(GLOB_RECURSE INCLUDES
3636
3737#Static library packaging
3838add_library (colouring ${SRCS} ${INCLUDES} )
39- set (CORE_LIBS colouring)
39+ set (CORE_LIBS colouring ${Boost_LIBRARIES} )
4040
4141#nested build scripts
4242add_subdirectory (tests)
You can’t perform that action at this time.
0 commit comments