Browse Source

Platform: no need to compile a file twice on macOS.

pull/331/head
Vladimír Vondruš 7 years ago
parent
commit
7466d939e5
  1. 7
      src/Magnum/Platform/CMakeLists.txt

7
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 $<TARGET_OBJECTS> entries, thus compiling the
# sources again in this case
add_library(MagnumCglContext STATIC ${MagnumContext_SRCS})
add_library(MagnumCglContext STATIC
$<TARGET_OBJECTS:MagnumCglContextObjects>
${PROJECT_SOURCE_DIR}/src/dummy.cpp) # XCode workaround, see file comment for details
set_target_properties(MagnumCglContext PROPERTIES
DEBUG_POSTFIX "-d"
FOLDER "Magnum/Platform")

Loading…
Cancel
Save