From 0630cc482c4c32f78268a54cf9e0c5de02c67cfc Mon Sep 17 00:00:00 2001 From: fredzio Date: Sun, 19 Apr 2020 19:37:40 +0200 Subject: [PATCH] Compile helpviewer in components only when USE_QT is defined It fixes build of OpenMW alone (wihtout launcher or OpenCS) --- components/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/components/CMakeLists.txt b/components/CMakeLists.txt index 501960176..26cf38204 100644 --- a/components/CMakeLists.txt +++ b/components/CMakeLists.txt @@ -86,7 +86,7 @@ add_component_dir (esmterrain ) add_component_dir (misc - gcd constants utf8stream stringops resourcehelpers rng messageformatparser weakcache helpviewer + gcd constants utf8stream stringops resourcehelpers rng messageformatparser weakcache ) add_component_dir (debug @@ -196,6 +196,10 @@ if (USE_QT) processinvoker ) + add_component_dir (misc + helpviewer + ) + if (DESIRED_QT_VERSION MATCHES 4) include(${QT_USE_FILE}) QT4_WRAP_UI(ESM_UI_HDR ${ESM_UI})