]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
cmake: use elseif for some system-specific code
authorThomas Debesse <dev@illwieckz.net>
Sun, 19 Feb 2023 15:15:35 +0000 (16:15 +0100)
committerThomas Debesse <dev@illwieckz.net>
Sun, 19 Feb 2023 15:15:35 +0000 (16:15 +0100)
CMakeLists.txt

index cd615d48bdee45b435b7bb28f9898087992b2a4c..794e2008942a3302a9b7a69535220c60da2b2304 100644 (file)
@@ -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 ()
 
 #-----------------------------------------------------------------------