From 432fbc8ef7b98e567b08e44ce91b198374a5ff01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ars=C3=A8ne=20P=C3=A9rard-Gayot?= Date: Tue, 20 Oct 2020 15:08:13 +0200 Subject: [PATCH] Fix linking error with libSDL2main by forcing the use of local script 'FindSDL2.cmake' --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 97a0e09a0..49bd53d56 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -147,7 +147,7 @@ else() if(SWITCH) find_package(SDL2_STATIC CONFIG QUIET) else() - find_package(SDL2 CONFIG QUIET) + find_package(SDL2 MODULE QUIET) endif() if (NOT SDL2_FOUND) find_package(SDL2 REQUIRED)