From 84beedbf263cb6f26fa453386899120b96b9de79 Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Sat, 9 Dec 2017 22:47:51 -0800 Subject: Updated cmake lists: enabled link-time code generation for MSVC --- External/lua-5.2.3/CMakeLists.txt | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'External/lua-5.2.3') diff --git a/External/lua-5.2.3/CMakeLists.txt b/External/lua-5.2.3/CMakeLists.txt index 204f1ba..685613b 100644 --- a/External/lua-5.2.3/CMakeLists.txt +++ b/External/lua-5.2.3/CMakeLists.txt @@ -85,8 +85,17 @@ if(MSVC) # Disable MSVC-specific warnings target_compile_definitions(Lua PRIVATE -D_CRT_SECURE_NO_WARNINGS) target_compile_options(Lua PRIVATE /W3 /wd4244 /wd4334 /wd4702) + + # 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(Lua PROPERTIES + STATIC_LIBRARY_FLAGS_RELEASE /LTCG + STATIC_LIBRARY_FLAGS_MINSIZEREL /LTCG + STATIC_LIBRARY_FLAGS_RELWITHDEBINFO /LTCG + ) endif(MSVC) + source_group("source" FILES ${SOURCE}) source_group("include" FILES ${INCLUDE}) -- cgit v1.2.3