File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,13 @@ else()
2424 message (STATUS "AppKit.framework found! ${APPKIT_LIBRARY} " )
2525endif ()
2626
27+ find_library (FOUNDATION_LIBRARY Foundation)
28+ if (NOT FOUNDATION_LIBRARY)
29+ message (STATUS "Foundation.framework NOT found!" )
30+ else ()
31+ message (STATUS "Foundation.framework found! ${FOUNDATION_LIBRARY} " )
32+ endif ()
33+
2734find_library (UIKIT_LIBRARY UIKit)
2835if (NOT UIKIT_LIBRARY)
2936 message (STATUS "UIKit.framework NOT found!" )
@@ -61,10 +68,12 @@ set(HEADERS
6168# Library
6269if (BUILD_SHARED)
6370 add_library (example SHARED ${SOURCES} ${HEADERS} )
71+ target_link_libraries (example ${FOUNDATION_LIBRARY} )
6472 target_compile_definitions (example PUBLIC IS_BUILDING_SHARED)
6573 message (STATUS "Building shared version..." )
6674else ()
6775 add_library (example STATIC ${SOURCES} ${HEADERS} )
76+ target_link_libraries (example ${FOUNDATION_LIBRARY} )
6877 message (STATUS "Building static version..." )
6978endif ()
7079
You can’t perform that action at this time.
0 commit comments