From c55e38f8b79e94ee2c88dd5d8ff643f3d67354de Mon Sep 17 00:00:00 2001 From: tbaudier Date: Tue, 14 Jun 2016 08:23:41 +0200 Subject: [PATCH] Find the correct version of Qt based on the VTK link in CMake --- cmake/build_opt.cmake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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) -- 2.47.1