From 94ac8ae08b19210efedd0e73b0c60010fb9308a0 Mon Sep 17 00:00:00 2001 From: Anonymous Maarten Date: Thu, 20 Oct 2022 13:29:35 +0200 Subject: [PATCH] cmake: else() does not need an argument --- mingw/pkg-support/cmake/sdl2-config-version.cmake | 2 +- mingw/pkg-support/cmake/sdl2-config.cmake | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mingw/pkg-support/cmake/sdl2-config-version.cmake b/mingw/pkg-support/cmake/sdl2-config-version.cmake index 131ee3aaf..9f7a8b34d 100644 --- a/mingw/pkg-support/cmake/sdl2-config-version.cmake +++ b/mingw/pkg-support/cmake/sdl2-config-version.cmake @@ -5,7 +5,7 @@ if(CMAKE_SIZEOF_VOID_P EQUAL 4) set(sdl2_config_path "${CMAKE_CURRENT_LIST_DIR}/../i686-w64-mingw32/lib/cmake/SDL2/sdl2-config-version.cmake") elseif(CMAKE_SIZEOF_VOID_P EQUAL 8) set(sdl2_config_path "${CMAKE_CURRENT_LIST_DIR}/../x86_64-w64-mingw32/lib/cmake/SDL2/sdl2-config-version.cmake") -else("${CMAKE_SIZEOF_VOID_P}" STREQUAL "") +else() set(PACKAGE_VERSION_UNSUITABLE TRUE) return() endif() diff --git a/mingw/pkg-support/cmake/sdl2-config.cmake b/mingw/pkg-support/cmake/sdl2-config.cmake index 8becf7198..3c0799fbc 100644 --- a/mingw/pkg-support/cmake/sdl2-config.cmake +++ b/mingw/pkg-support/cmake/sdl2-config.cmake @@ -5,7 +5,7 @@ if(CMAKE_SIZEOF_VOID_P EQUAL 4) set(sdl2_config_path "${CMAKE_CURRENT_LIST_DIR}/../i686-w64-mingw32/lib/cmake/SDL2/sdl2-config.cmake") elseif(CMAKE_SIZEOF_VOID_P EQUAL 8) set(sdl2_config_path "${CMAKE_CURRENT_LIST_DIR}/../x86_64-w64-mingw32/lib/cmake/SDL2/sdl2-config.cmake") -else("${CMAKE_SIZEOF_VOID_P}" STREQUAL "") +else() set(SDL2_FOUND FALSE) return() endif()