From a11be18c81e81210984508f5f86911ef453cbb38 Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Wed, 13 Dec 2017 20:01:20 -0800 Subject: Optimized CMake files with set_common_target_properties() --- Graphics/GraphicsEngine/CMakeLists.txt | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'Graphics/GraphicsEngine') diff --git a/Graphics/GraphicsEngine/CMakeLists.txt b/Graphics/GraphicsEngine/CMakeLists.txt index 350ff53a..afa44fb2 100644 --- a/Graphics/GraphicsEngine/CMakeLists.txt +++ b/Graphics/GraphicsEngine/CMakeLists.txt @@ -55,6 +55,7 @@ set(SOURCE ) add_library(GraphicsEngine STATIC ${SOURCE} ${INTERFACE} ${INCLUDE}) +set_common_target_properties(GraphicsEngine) target_include_directories(GraphicsEngine PUBLIC @@ -72,16 +73,6 @@ PUBLIC Common ) -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(GraphicsEngine PROPERTIES - STATIC_LIBRARY_FLAGS_RELEASE /LTCG - STATIC_LIBRARY_FLAGS_MINSIZEREL /LTCG - STATIC_LIBRARY_FLAGS_RELWITHDEBINFO /LTCG - ) -endif() - source_group("src" FILES ${SOURCE}) source_group("include" FILES ${INCLUDE}) source_group("interface" FILES ${INTERFACE}) -- cgit v1.2.3