From fe150555cb15e905b080ce7e85a20fdcb01e9259 Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Wed, 13 Dec 2017 20:04:39 -0800 Subject: Optimized CMake files with set_common_target_properties() --- unityplugin/GhostCubeScene/CMakeLists.txt | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'unityplugin/GhostCubeScene') diff --git a/unityplugin/GhostCubeScene/CMakeLists.txt b/unityplugin/GhostCubeScene/CMakeLists.txt index aa7860c..cdf461d 100644 --- a/unityplugin/GhostCubeScene/CMakeLists.txt +++ b/unityplugin/GhostCubeScene/CMakeLists.txt @@ -59,18 +59,12 @@ PRIVATE UnityEmulator TargetPlatform ) +set_common_target_properties(GhostCubeScene) if(MSVC) # Disable MSVC-specific warnings # - w4201: nonstandard extension used: nameless struct/unio target_compile_options(GhostCubeScene PRIVATE /wd4201) - # 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(GhostCubeScene PROPERTIES - LINK_FLAGS_RELEASE /LTCG - LINK_FLAGS_MINSIZEREL /LTCG - LINK_FLAGS_RELWITHDEBINFO /LTCG - ) endif() source_group("src" FILES ${SOURCE}) -- cgit v1.2.3