From ad006a3daae65a612ed87415037e32188b81071e Mon Sep 17 00:00:00 2001 From: Teybeo Date: Sun, 23 Feb 2020 15:59:39 +0100 Subject: [PATCH] Fix quotes around -framework Cocoa (#1) On OSX 10.12.6, removing the quotes is needed for cmake to correctly parse the argument --- FindSDL2.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FindSDL2.cmake b/FindSDL2.cmake index c26ed1b..2445d36 100644 --- a/FindSDL2.cmake +++ b/FindSDL2.cmake @@ -274,7 +274,7 @@ if(SDL2_LIBRARY) # So I use a temporary variable until the end so I can set the # "real" variable in one-shot. if(APPLE) - set(SDL2_LIBRARIES ${SDL2_LIBRARIES} "-framework Cocoa") + set(SDL2_LIBRARIES ${SDL2_LIBRARIES} -framework Cocoa) endif() # For threads, as mentioned Apple doesn't need this. @@ -343,7 +343,7 @@ if(SDL2_FOUND) # For OS X, SDL2 uses Cocoa as a backend so it must link to Cocoa. # For more details, please see above. set_property(TARGET SDL2::Core APPEND PROPERTY - INTERFACE_LINK_OPTIONS "-framework Cocoa") + INTERFACE_LINK_OPTIONS -framework Cocoa) else() # For threads, as mentioned Apple doesn't need this. # For more details, please see above.