1
0
mirror of https://github.com/aseprite/aseprite.git synced 2025-03-14 04:19:12 +00:00

Add flag to improve linking times when we use the Skia port

This commit is contained in:
David Capello 2015-10-05 21:19:11 -03:00
parent 03c0367827
commit 69bb8fef9b

@ -14,6 +14,12 @@ endif()
# Compiler-specific flags
if(MSVC)
# As Skia is compiled with /GL flag (whole program optimization),
# the linker prefer a /LTCG parameter to improve link times.
if(USE_SKIA_BACKEND)
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /LTCG")
endif()
# Do not link with libcmt.lib (to avoid duplicated symbols with msvcrtd.lib)
if(CMAKE_BUILD_TYPE STREQUAL Debug)
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /NODEFAULTLIB:LIBCMT")