From 4d69cd071b50726e8a4bd9b4eaa19cec068f49d7 Mon Sep 17 00:00:00 2001 From: Lars Bilke <lars.bilke@ufz.de> Date: Thu, 15 Feb 2018 12:10:09 +0100 Subject: [PATCH] [Conan] Use VTK 8.1.0 --- scripts/cmake/ConanSetup.cmake | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/cmake/ConanSetup.cmake b/scripts/cmake/ConanSetup.cmake index e2b8c38e899..2d4c7232c34 100644 --- a/scripts/cmake/ConanSetup.cmake +++ b/scripts/cmake/ConanSetup.cmake @@ -18,7 +18,7 @@ include(${PROJECT_SOURCE_DIR}/scripts/cmake/conan/conan.cmake) set(CONAN_REQUIRES Boost/1.64.0@conan/stable Eigen3/3.2.9@bilke/stable - VTK/7.1.0@bilke/stable + VTK/8.1.0@bilke/testing CACHE INTERNAL "" ) @@ -28,7 +28,7 @@ set(CONAN_OPTIONS CACHE INTERNAL "" ) -if(LINUX AND BUILD_SHARED_LIBS) +if((UNIX AND NOT APPLE) AND BUILD_SHARED_LIBS) set(CONAN_OPTIONS ${CONAN_OPTIONS} VTK:fPIC=True) endif() @@ -50,6 +50,10 @@ if(OGS_BUILD_GUI) libgeotiff/1.4.2@bilke/stable Qt/5.11@bincrafters/stable ) + set(CONAN_OPTIONS ${CONAN_OPTIONS} VTK:qt=True) + if(UNIX AND NOT APPLE) + set(CONAN_OPTIONS ${CONAN_OPTIONS} VTK:x11=True) + endif() endif() # Find Conan and do version check -- GitLab