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/GraphicsEngineD3D12/CMakeLists.txt | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) (limited to 'Graphics/GraphicsEngineD3D12') diff --git a/Graphics/GraphicsEngineD3D12/CMakeLists.txt b/Graphics/GraphicsEngineD3D12/CMakeLists.txt index 31971cf4..9493f948 100644 --- a/Graphics/GraphicsEngineD3D12/CMakeLists.txt +++ b/Graphics/GraphicsEngineD3D12/CMakeLists.txt @@ -174,21 +174,8 @@ set_target_properties(GraphicsEngineD3D12-shared PROPERTIES OUTPUT_NAME_MINSIZEREL GraphicsEngineD3D12${DLL_REL_SUFFIX} ) -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(GraphicsEngineD3D12-shared PROPERTIES - LINK_FLAGS_RELEASE /LTCG - LINK_FLAGS_MINSIZEREL /LTCG - LINK_FLAGS_RELWITHDEBINFO /LTCG - ) - set_target_properties(GraphicsEngineD3D12-static PROPERTIES - STATIC_LIBRARY_FLAGS_RELEASE /LTCG - STATIC_LIBRARY_FLAGS_MINSIZEREL /LTCG - STATIC_LIBRARY_FLAGS_RELWITHDEBINFO /LTCG - ) -endif() - +set_common_target_properties(GraphicsEngineD3D12-shared) +set_common_target_properties(GraphicsEngineD3D12-static) source_group("src" FILES ${SRC}) -- cgit v1.2.3