From 2d81c45170588995c346bf324b2154c4ef59efb3 Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Wed, 13 Dec 2017 20:02:36 -0800 Subject: Optimized CMake files with set_common_target_properties() --- TextureLoader/CMakeLists.txt | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'TextureLoader') diff --git a/TextureLoader/CMakeLists.txt b/TextureLoader/CMakeLists.txt index 979c1de..a972d25 100644 --- a/TextureLoader/CMakeLists.txt +++ b/TextureLoader/CMakeLists.txt @@ -22,6 +22,7 @@ set(SOURCE ) add_library(TextureLoader STATIC ${SOURCE} ${INCLUDE}) +set_common_target_properties(TextureLoader) target_include_directories(TextureLoader PUBLIC @@ -34,16 +35,6 @@ 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 -- cgit v1.2.3