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
This commit is contained in:
akva
2012-04-26 11:24:47 +00:00
committed by Knut Morten Okstad
parent 91a1fea6e7
commit de60bf281c

View File

@@ -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)