mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-30 21:37:43 +08:00
cmake: get_filename_component(EXT) returns extension including leading dot
This commit is contained in:
committed by
Anonymous Maarten
parent
a17ad65f2b
commit
7d55bbc0da
+1
-1
@@ -3123,7 +3123,7 @@ endif()
|
|||||||
if(APPLE)
|
if(APPLE)
|
||||||
foreach(SOURCE_FILE ${SOURCE_FILES})
|
foreach(SOURCE_FILE ${SOURCE_FILES})
|
||||||
get_filename_component(FILE_EXTENSION ${SOURCE_FILE} EXT)
|
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")
|
set_property(SOURCE ${SOURCE_FILE} APPEND_STRING PROPERTY COMPILE_FLAGS " -x objective-c")
|
||||||
endif()
|
endif()
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|||||||
Reference in New Issue
Block a user