summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineD3D11
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2017-12-14 04:01:20 +0000
committerEgor Yusov <egor.yusov@gmail.com>2017-12-14 04:01:20 +0000
commita11be18c81e81210984508f5f86911ef453cbb38 (patch)
treed6d8a40d85962f5e390e6529ae1679bc39955089 /Graphics/GraphicsEngineD3D11
parentEnabling universal windows platform in cmake (diff)
downloadDiligentCore-a11be18c81e81210984508f5f86911ef453cbb38.tar.gz
DiligentCore-a11be18c81e81210984508f5f86911ef453cbb38.zip
Optimized CMake files with set_common_target_properties()
Diffstat (limited to 'Graphics/GraphicsEngineD3D11')
-rw-r--r--Graphics/GraphicsEngineD3D11/CMakeLists.txt16
1 files changed, 2 insertions, 14 deletions
diff --git a/Graphics/GraphicsEngineD3D11/CMakeLists.txt b/Graphics/GraphicsEngineD3D11/CMakeLists.txt
index ef2d02b7..4ff8b6b3 100644
--- a/Graphics/GraphicsEngineD3D11/CMakeLists.txt
+++ b/Graphics/GraphicsEngineD3D11/CMakeLists.txt
@@ -90,20 +90,8 @@ set_target_properties(GraphicsEngineD3D11-shared PROPERTIES
OUTPUT_NAME_MINSIZEREL GraphicsEngineD3D11${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(GraphicsEngineD3D11-shared PROPERTIES
- LINK_FLAGS_RELEASE /LTCG
- LINK_FLAGS_MINSIZEREL /LTCG
- LINK_FLAGS_RELWITHDEBINFO /LTCG
- )
- set_target_properties(GraphicsEngineD3D11-static PROPERTIES
- STATIC_LIBRARY_FLAGS_RELEASE /LTCG
- STATIC_LIBRARY_FLAGS_MINSIZEREL /LTCG
- STATIC_LIBRARY_FLAGS_RELWITHDEBINFO /LTCG
- )
-endif()
+set_common_target_properties(GraphicsEngineD3D11-shared)
+set_common_target_properties(GraphicsEngineD3D11-static)
target_include_directories(GraphicsEngineD3D11-static
PUBLIC