From 50ae38591a4f0168ca7e282a646c27d917f31f99 Mon Sep 17 00:00:00 2001 From: Eric Mellino Date: Wed, 17 Jul 2019 09:49:30 -0700 Subject: [PATCH] Link to ApplicationServices.framework on macOS. --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index bc2e045..6a51dee 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -26,6 +26,9 @@ else (IMGUI_STATIC) endif (IMGUI_STATIC) target_link_libraries(cimgui ${IMGUI_LIBRARIES}) +if (APPLE) + target_link_libraries(cimgui "-framework ApplicationServices") +endif() set_target_properties(cimgui PROPERTIES PREFIX "") #install