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")