From c0b44513fb2f5ba64a91a5ea972772d0c0a48f89 Mon Sep 17 00:00:00 2001 From: Raphael Grimm <raphael.grimm@kit.edu> Date: Wed, 3 Jan 2018 00:12:40 +0100 Subject: [PATCH] Assert simox is using the same version of qt --- CMakeLists.txt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2c9e50131..d0ec916c5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -30,6 +30,15 @@ else() endif() if (Simox_FOUND) setupSimoxExternalLibraries() + if(ARMARX_USE_QT5) + if(Simox_USE_QT4) + message(FATAL_ERROR "ArmarX uses Qt5 and Simox uses Qt4") + endif() + else() + if(Simox_USE_QT5) + message(FATAL_ERROR "ArmarX uses Qt4 and Simox uses Qt5") + endif() + endif() endif() add_subdirectory(source) -- GitLab