summaryrefslogtreecommitdiffstats
path: root/Projects
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2017-12-14 04:04:39 +0000
committerEgor Yusov <egor.yusov@gmail.com>2017-12-14 04:04:39 +0000
commitfe150555cb15e905b080ce7e85a20fdcb01e9259 (patch)
treeb21ff8f63930b7a4515b34683d7e89ba49744403 /Projects
parentAdding UWP to CMake (in progress) (diff)
downloadDiligentEngine-fe150555cb15e905b080ce7e85a20fdcb01e9259.tar.gz
DiligentEngine-fe150555cb15e905b080ce7e85a20fdcb01e9259.zip
Optimized CMake files with set_common_target_properties()
Diffstat (limited to 'Projects')
-rw-r--r--Projects/Asteroids/CMakeLists.txt9
1 files changed, 2 insertions, 7 deletions
diff --git a/Projects/Asteroids/CMakeLists.txt b/Projects/Asteroids/CMakeLists.txt
index 8a3be34..0849b38 100644
--- a/Projects/Asteroids/CMakeLists.txt
+++ b/Projects/Asteroids/CMakeLists.txt
@@ -145,6 +145,8 @@ PRIVATE
shcore.lib
)
+set_common_target_properties(Asteroids)
+
if(MSVC)
set_header_file_only_property("${SHADERS}")
@@ -153,13 +155,6 @@ if(MSVC)
# - w4324: structure was padded due to alignment specifier
# - w4238: nonstandard extension used: class rvalue used as lvalue
target_compile_options(Asteroids PRIVATE /wd4201 /wd4324 /wd4238)
- # 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(Asteroids PROPERTIES
- LINK_FLAGS_RELEASE /LTCG
- LINK_FLAGS_MINSIZEREL /LTCG
- LINK_FLAGS_RELWITHDEBINFO /LTCG
- )
endif()
source_group("src" FILES ${SOURCE})