2021-05-21 16:16:33 +08:00
|
|
|
diff --git a/CMake/fl_add_library.cmake b/CMake/fl_add_library.cmake
|
|
|
|
index 6fa2fc5..e5ba493 100644
|
|
|
|
--- a/CMake/fl_add_library.cmake
|
|
|
|
+++ b/CMake/fl_add_library.cmake
|
|
|
|
@@ -38,6 +38,11 @@ macro (FL_ADD_LIBRARY LIBNAME LIBTYPE LIBFILES)
|
|
|
|
add_library(${TARGET_NAME} ${LIBTYPE} ${LIBFILES})
|
|
|
|
|
|
|
|
target_include_directories(${TARGET_NAME} PUBLIC $<INSTALL_INTERFACE:include>)
|
|
|
|
+
|
2021-04-10 00:59:25 +08:00
|
|
|
+ if (APPLE)
|
|
|
|
+ find_library(Cocoa Cocoa)
|
2021-05-21 16:16:33 +08:00
|
|
|
+ target_link_libraries(${TARGET_NAME} $<$<PLATFORM_ID:Darwin>:${Cocoa}>)
|
2021-04-10 00:59:25 +08:00
|
|
|
+ endif()
|
|
|
|
|
2021-05-21 16:16:33 +08:00
|
|
|
# target properties for all libraries
|
|
|
|
|