diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2017-12-10 06:47:51 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2017-12-10 06:47:51 +0000 |
| commit | 84beedbf263cb6f26fa453386899120b96b9de79 (patch) | |
| tree | c0d32781f05618d72e0de906865b9af21a6b4c26 /External/lua-5.2.3 | |
| parent | Updated cmake files; fixed build warnings (diff) | |
| download | DiligentTools-84beedbf263cb6f26fa453386899120b96b9de79.tar.gz DiligentTools-84beedbf263cb6f26fa453386899120b96b9de79.zip | |
Updated cmake lists: enabled link-time code generation for MSVC
Diffstat (limited to 'External/lua-5.2.3')
| -rw-r--r-- | External/lua-5.2.3/CMakeLists.txt | 9 |
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}) |
