summaryrefslogtreecommitdiffstats
path: root/External/lua-5.2.3
diff options
context:
space:
mode:
Diffstat (limited to 'External/lua-5.2.3')
-rw-r--r--External/lua-5.2.3/CMakeLists.txt9
1 files changed, 9 insertions, 0 deletions
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})