From 8c25f893bd5830746f9100491832cb21940b4ee3 Mon Sep 17 00:00:00 2001 From: jongough Date: Mon, 8 Jun 2020 18:20:05 +1000 Subject: [PATCH] Change test for gtk3 --- cmake/PluginConfigure.cmake | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/cmake/PluginConfigure.cmake b/cmake/PluginConfigure.cmake index d8bd4435..689422ef 100644 --- a/cmake/PluginConfigure.cmake +++ b/cmake/PluginConfigure.cmake @@ -93,13 +93,14 @@ message(STATUS "${CMLOC}OCPN_TARGET: $ENV{OCPN_TARGET}") if(NOT DEFINED $ENV{OCPN_TARGET}) set($ENV{OCPN_TARGET} ${PKG_TARGET}) message(STATUS "${CMLOC}Setting OCPN_TARGET") -endif(NOT DEFINED $ENV{OCPN_TARGET}) -if($ENV{OCPN_TARGET} MATCHES "(.*)gtk3") +endif() + +if("$ENV{BUILD_GTK3}" STREQUAL "true") set(PKG_TARGET_GTK "-gtk3") message(STATUS "${CMLOC}Found gtk3") -else($ENV{OCPN_TARGET} MATCHES "(.*)gtk3") +else() set(PKG_TARGET_GTK "") -endif($ENV{OCPN_TARGET} MATCHES "(.*)gtk3") +endif() message(STATUS "${CMLOC}PKG_TARGET_GTK: ${PKG_TARGET_GTK}") if(UNIX)