Fix quotes around -framework Cocoa (#1)

On OSX 10.12.6, removing the quotes is needed for cmake to correctly parse the argument
This commit is contained in:
Teybeo 2020-02-23 15:59:39 +01:00 committed by GitHub
parent 0bd2da935b
commit ad006a3daa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -274,7 +274,7 @@ if(SDL2_LIBRARY)
# So I use a temporary variable until the end so I can set the # So I use a temporary variable until the end so I can set the
# "real" variable in one-shot. # "real" variable in one-shot.
if(APPLE) if(APPLE)
set(SDL2_LIBRARIES ${SDL2_LIBRARIES} "-framework Cocoa") set(SDL2_LIBRARIES ${SDL2_LIBRARIES} -framework Cocoa)
endif() endif()
# For threads, as mentioned Apple doesn't need this. # 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 OS X, SDL2 uses Cocoa as a backend so it must link to Cocoa.
# For more details, please see above. # For more details, please see above.
set_property(TARGET SDL2::Core APPEND PROPERTY set_property(TARGET SDL2::Core APPEND PROPERTY
INTERFACE_LINK_OPTIONS "-framework Cocoa") INTERFACE_LINK_OPTIONS -framework Cocoa)
else() else()
# For threads, as mentioned Apple doesn't need this. # For threads, as mentioned Apple doesn't need this.
# For more details, please see above. # For more details, please see above.