From de60bf281c6057988554273f0492be7dc34ab8f1 Mon Sep 17 00:00:00 2001 From: akva Date: Thu, 26 Apr 2012 11:24:47 +0000 Subject: [PATCH] fixed: append boost include dirs / libraries to gotools deps if gotools is built with boost git-svn-id: http://svn.sintef.no/trondheim/IFEM/trunk@1625 e10b68d5-8a6e-419e-a041-bce267b0401d --- cmake/Modules/FindGoTools.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmake/Modules/FindGoTools.cmake b/cmake/Modules/FindGoTools.cmake index 3b09b0b7..888f074e 100644 --- a/cmake/Modules/FindGoTools.cmake +++ b/cmake/Modules/FindGoTools.cmake @@ -40,6 +40,8 @@ IF (GoTools_VERSION_MAJOR GREATER 2) MESSAGE(STATUS "Compiler is non-GNU, assuming GoTools was built with Boost") FIND_PACKAGE(Boost REQUIRED) SET(GoTools_CXX_FLAGS "-DUSE_BOOST=1") + SET(GoTools_LIBRARIES ${GoTools_LIBRARIES} ${Boost_LIBRARIES}) + SET(GoTools_INCLUDE_DIRS ${GoTools_INCLUDE_DIRS} ${Boost_INCLUDE_DIR}) ENDIF(CMAKE_CXX_COMPILER_ID MATCHES GNU) ENDIF (GoTools_VERSION_MAJOR GREATER 2)