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/GraphicsEngineD3DBase/CMakeLists.txt | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'Graphics/GraphicsEngineD3DBase') diff --git a/Graphics/GraphicsEngineD3DBase/CMakeLists.txt b/Graphics/GraphicsEngineD3DBase/CMakeLists.txt index 0fd12bca..a0e22fda 100644 --- a/Graphics/GraphicsEngineD3DBase/CMakeLists.txt +++ b/Graphics/GraphicsEngineD3DBase/CMakeLists.txt @@ -72,16 +72,7 @@ PRIVATE PlatformInterface 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(GraphicsEngineD3DBase PROPERTIES - STATIC_LIBRARY_FLAGS_RELEASE /LTCG - STATIC_LIBRARY_FLAGS_MINSIZEREL /LTCG - STATIC_LIBRARY_FLAGS_RELWITHDEBINFO /LTCG - ) -endif() +set_common_target_properties(GraphicsEngineD3DBase) source_group("src" FILES ${SOURCE}) source_group("include" FILES ${INCLUDE}) -- cgit v1.2.3