From 649dd7bd8de9fa0bd287029e0182df41aba010eb Mon Sep 17 00:00:00 2001 From: Ronald Kinard Date: Tue, 24 Feb 2015 02:19:37 -0600 Subject: [PATCH] Fix SDL2 searching for main when it wasn't necessary. --- cmake/Modules/FindSDL2.cmake | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/cmake/Modules/FindSDL2.cmake b/cmake/Modules/FindSDL2.cmake index 7939b7d52..9e789e19c 100644 --- a/cmake/Modules/FindSDL2.cmake +++ b/cmake/Modules/FindSDL2.cmake @@ -27,19 +27,7 @@ find_library(SDL2_LIBRARY "/usr/local/lib" ) -find_library(SDL2_MAIN_LIBRARY - NAMES SDL2_main - PATHS - ${SDL2_PKGCONF_LIBRARY_DIRS} - /usr/lib - /usr/local/lib -) - - # set include dir variables set(SDL2_PROCESS_INCLUDES SDL2_INCLUDE_DIR) set(SDL2_PROCESS_LIBS SDL2_LIBRARY) -set(SDL2_MAIN_PROCESS_INCLUDES SDL2_INCLUDE_DIR) -set(SDL2_MAIN_PROCESS_LIBS SDL2_MAIN_LIBRARY) libfind_process(SDL2) -libfind_process(SDL2_MAIN)