From 0bcce442c3bb4b74df5360ef8d409258d41885d5 Mon Sep 17 00:00:00 2001 From: Sam Edwards Date: Sun, 2 Mar 2014 21:57:15 -0700 Subject: [PATCH] CMake: Properly link against the proper frameworks on OS X. --- dtool/src/dtoolutil/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dtool/src/dtoolutil/CMakeLists.txt b/dtool/src/dtoolutil/CMakeLists.txt index 04a4e0ce6c..f68db48a5b 100644 --- a/dtool/src/dtoolutil/CMakeLists.txt +++ b/dtool/src/dtoolutil/CMakeLists.txt @@ -56,4 +56,10 @@ if(HAVE_PYTHON) target_link_libraries(p3dtoolutil ${PYTHON_LIBRARIES}) endif() +if(APPLE) + find_library(FOUNDATION_LIBRARY Foundation) + find_library(APPKIT_LIBRARY AppKit) + target_link_libraries(p3dtoolutil ${FOUNDATION_LIBRARY} ${APPKIT_LIBRARY}) +endif() + install(TARGETS p3dtoolutil DESTINATION lib)