From: tbaudier Date: Tue, 14 Jun 2016 06:23:41 +0000 (+0200) Subject: Find the correct version of Qt based on the VTK link in CMake X-Git-Tag: v1.4.0~21^2~1 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=c55e38f8b79e94ee2c88dd5d8ff643f3d67354de;p=clitk.git Find the correct version of Qt based on the VTK link in CMake --- diff --git a/cmake/build_opt.cmake b/cmake/build_opt.cmake index 502a056..2331750 100644 --- a/cmake/build_opt.cmake +++ b/cmake/build_opt.cmake @@ -30,7 +30,11 @@ if(CLITK_BUILD_VV) if(VTK_VERSION VERSION_LESS 6.0.0) set(vv_QT_VERSION "4" CACHE INTERNAL "Expected Qt version") else() - set(vv_QT_VERSION "5" CACHE INTERNAL "Expected Qt version") + if(VTK_QT_VERSION VERSION_LESS 5) + set(vv_QT_VERSION "4" CACHE INTERNAL "Expected Qt version") + else() + set(vv_QT_VERSION "5" CACHE INTERNAL "Expected Qt version") + endif() endif() add_subdirectory(${CLITK_SOURCE_DIR}/vv ${PROJECT_BINARY_DIR}/vv)