From 7466d939e5c0c615454054ee6ebb5db66afeff25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Wed, 13 Mar 2019 17:48:54 +0100 Subject: [PATCH] Platform: no need to compile a file twice on macOS. --- src/Magnum/Platform/CMakeLists.txt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Magnum/Platform/CMakeLists.txt b/src/Magnum/Platform/CMakeLists.txt index 54b4516cc..277f88c60 100644 --- a/src/Magnum/Platform/CMakeLists.txt +++ b/src/Magnum/Platform/CMakeLists.txt @@ -765,10 +765,9 @@ if(NEED_CGLCONTEXT OR WITH_CGLCONTEXT) message(SEND_ERROR "CglContext is available only if TARGET_GL is enabled") endif() - # CMake-generated XCode projects had some problems when library - # consisted only of $ entries, thus compiling the - # sources again in this case - add_library(MagnumCglContext STATIC ${MagnumContext_SRCS}) + add_library(MagnumCglContext STATIC + $ + ${PROJECT_SOURCE_DIR}/src/dummy.cpp) # XCode workaround, see file comment for details set_target_properties(MagnumCglContext PROPERTIES DEBUG_POSTFIX "-d" FOLDER "Magnum/Platform")