From 2bf4aeb9eb68faa7df3f9985689b042efa209a51 Mon Sep 17 00:00:00 2001 From: Roberto Di Remigio Date: Mon, 28 Sep 2015 14:39:47 +0200 Subject: [PATCH] Add Boost on the include and link path. It was only done when the auto-build was triggered, resulting in build errors when Boost is available on the system but not on the standard paths. --- modules/boost/boost.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/boost/boost.cmake b/modules/boost/boost.cmake index 540e519..e9bf976 100644 --- a/modules/boost/boost.cmake +++ b/modules/boost/boost.cmake @@ -150,10 +150,10 @@ if(BUILD_CUSTOM_BOOST) list(APPEND Boost_LIBRARIES ${Boost_${_COMP}_LIBRARY}) endforeach() set(Boost_INCLUDE_DIRS ${Boost_INCLUDE_DIR}) - include_directories(SYSTEM ${Boost_INCLUDE_DIRS}) set(Boost_LIBRARY_DIRS ${Boost_LIBRARY_DIR}) if(CMAKE_SYSTEM_NAME MATCHES "Linux") list(APPEND Boost_LIBRARIES rt) endif() - link_directories(${Boost_LIBRARY_DIRS}) endif(BUILD_CUSTOM_BOOST) +include_directories(SYSTEM ${Boost_INCLUDE_DIRS}) +link_directories(${Boost_LIBRARY_DIRS})