From: Thomas Debesse Date: Sun, 19 Feb 2023 15:15:35 +0000 (+0100) Subject: cmake: use elseif for some system-specific code X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a09854f1a9d64a8ae392f4f630a00c27fcdabccb;p=xonotic%2Fnetradiant.git cmake: use elseif for some system-specific code --- diff --git a/CMakeLists.txt b/CMakeLists.txt index cd615d48..794e2008 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -256,15 +256,13 @@ if (BUILD_RADIANT) if (GTK_TARGET EQUAL 2) add_definitions(-DWORKAROUND_WINDOWS_GTK2_GLWIDGET=1) endif () - endif () - - if (APPLE) + elseif (APPLE) if (GTK_TARGET EQUAL 2) add_definitions(-DWORKAROUND_MACOS_GTK2_DESTROY=1) add_definitions(-DWORKAROUND_MACOS_GTK2_GLWIDGET=1) add_definitions(-DWORKAROUND_MACOS_GTK2_LAGGYPOINTER=1) endif () - endif () + endif() endif () #-----------------------------------------------------------------------