check SDL2 framework on OSX

This commit is contained in:
Ian Bastos 2019-07-17 00:27:42 +01:00 committed by Tamás Bálint Misius
parent cf7e478ac5
commit c5c4d92c32

View File

@ -238,9 +238,9 @@ def findLibs(env, conf):
#Look for SDL
runSdlConfig = platform == "Linux" or compilePlatform == "Linux" or platform == "FreeBSD"
#if platform == "Darwin" and conf.CheckFramework("SDL"):
# runSdlConfig = False
if not conf.CheckLib("SDL2"):
if platform == "Darwin" and conf.CheckFramework("SDL2"):
runSdlConfig = False
elif not conf.CheckLib("SDL2"):
FatalError("SDL2 development library not found or not installed")
if runSdlConfig: