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/UnityEmulator/CMakeLists.txt | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'unityplugin/UnityEmulator') diff --git a/unityplugin/UnityEmulator/CMakeLists.txt b/unityplugin/UnityEmulator/CMakeLists.txt index da260a4..21b59a9 100644 --- a/unityplugin/UnityEmulator/CMakeLists.txt +++ b/unityplugin/UnityEmulator/CMakeLists.txt @@ -90,6 +90,7 @@ endif() add_library(UnityEmulator STATIC ${SOURCE} ${INCLUDE}) +set_common_target_properties(UnityEmulator) target_include_directories(UnityEmulator PRIVATE @@ -100,14 +101,6 @@ PUBLIC if(MSVC) target_compile_options(UnityEmulator PRIVATE -DUNICODE) - - # 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(UnityEmulator PROPERTIES - STATIC_LIBRARY_FLAGS_RELEASE /LTCG - STATIC_LIBRARY_FLAGS_MINSIZEREL /LTCG - STATIC_LIBRARY_FLAGS_RELWITHDEBINFO /LTCG - ) endif() target_link_libraries(UnityEmulator -- cgit v1.2.3