[build] CMake: Fix Metal linking on macOS (#2725)

This commit is contained in:
Prateek Machiraju
2020-09-20 12:31:20 -04:00
committed by GitHub
parent d4d0b5501b
commit 0503225928
4 changed files with 16 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
macro(wpilib_link_macos_gui target)
if (APPLE)
set_target_properties(${target} PROPERTIES LINK_FLAGS "-framework Metal -framework QuartzCore")
endif()
endmacro()