mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-23 00:05:35 +00:00
cmake: get_filename_component(EXT) retturns extension including leading dot
This commit is contained in:
parent
57ae9f466d
commit
ce4c54e2b2
|
@ -3297,7 +3297,7 @@ endif()
|
|||
if(APPLE)
|
||||
foreach(SOURCE_FILE ${SOURCE_FILES})
|
||||
get_filename_component(FILE_EXTENSION ${SOURCE_FILE} EXT)
|
||||
if(FILE_EXTENSION STREQUAL "m")
|
||||
if(FILE_EXTENSION STREQUAL ".m")
|
||||
set_property(SOURCE ${SOURCE_FILE} APPEND_STRING PROPERTY COMPILE_FLAGS " -x objective-c")
|
||||
endif()
|
||||
endforeach()
|
||||
|
|
Loading…
Reference in a new issue