summaryrefslogtreecommitdiffstats
path: root/TextureLoader
diff options
context:
space:
mode:
Diffstat (limited to 'TextureLoader')
-rw-r--r--TextureLoader/CMakeLists.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/TextureLoader/CMakeLists.txt b/TextureLoader/CMakeLists.txt
index 3899618..74ecde0 100644
--- a/TextureLoader/CMakeLists.txt
+++ b/TextureLoader/CMakeLists.txt
@@ -34,6 +34,16 @@ source_group("include" FILES ${INCLUDE})
target_link_libraries(TextureLoader PRIVATE BuildSettings Common PlatformInterface GraphicsEngine GraphicsTools LibJpeg LibPng LibTiff Lua ZLib)
+if(MSVC)
+ # Enable link-time code generation for release builds (I was not able to
+ # find any way to set these settings through interface library BuildSettings)
+ set_target_properties(TextureLoader PROPERTIES
+ STATIC_LIBRARY_FLAGS_RELEASE /LTCG
+ STATIC_LIBRARY_FLAGS_MINSIZEREL /LTCG
+ STATIC_LIBRARY_FLAGS_RELWITHDEBINFO /LTCG
+ )
+endif()
+
set_target_properties(TextureLoader PROPERTIES
FOLDER Tools
) \ No newline at end of file