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") message(SEND_ERROR "CglContext is available only if TARGET_GL is enabled")
endif() endif()
# CMake-generated XCode projects had some problems when library add_library(MagnumCglContext STATIC
# consisted only of $<TARGET_OBJECTS> entries, thus compiling the $<TARGET_OBJECTS:MagnumCglContextObjects>
# sources again in this case ${PROJECT_SOURCE_DIR}/src/dummy.cpp) # XCode workaround, see file comment for details
add_library(MagnumCglContext STATIC ${MagnumContext_SRCS})
set_target_properties(MagnumCglContext PROPERTIES set_target_properties(MagnumCglContext PROPERTIES
DEBUG_POSTFIX "-d" DEBUG_POSTFIX "-d"
FOLDER "Magnum/Platform") FOLDER "Magnum/Platform")

Loading…
Cancel
Save