Skip to content

Commit

Permalink
Fix source list for Objective-C fix
Browse files Browse the repository at this point in the history
  • Loading branch information
elmindreda committed Dec 9, 2019
1 parent 135d87a commit 197193a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,10 @@ if (_GLFW_X11 OR _GLFW_WAYLAND)
endif()

if (APPLE)
# For some reason, CMake doesn't know about .m
set_source_files_properties(${glfw_SOURCES} PROPERTIES LANGUAGE C)
# For some reason CMake didn't know about .m until version 3.16
set_source_files_properties(cocoa_init.m cocoa_joystick.m cocoa_monitor.m
cocoa_window.m nsgl_context.m PROPERTIES
LANGUAGE C)
endif()

# Make GCC and Clang warn about declarations that VS 2010 and 2012 won't accept
Expand Down

0 comments on commit 197193a

Please sign in to comment.