summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngine
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/GraphicsEngine
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/GraphicsEngine')
-rw-r--r--Graphics/GraphicsEngine/CMakeLists.txt11
1 files changed, 1 insertions, 10 deletions
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})