diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2017-12-10 06:47:51 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2017-12-10 06:47:51 +0000 |
| commit | 84beedbf263cb6f26fa453386899120b96b9de79 (patch) | |
| tree | c0d32781f05618d72e0de906865b9af21a6b4c26 /TextureLoader | |
| parent | Updated cmake files; fixed build warnings (diff) | |
| download | DiligentTools-84beedbf263cb6f26fa453386899120b96b9de79.tar.gz DiligentTools-84beedbf263cb6f26fa453386899120b96b9de79.zip | |
Updated cmake lists: enabled link-time code generation for MSVC
Diffstat (limited to 'TextureLoader')
| -rw-r--r-- | TextureLoader/CMakeLists.txt | 10 |
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 |
