diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2017-12-14 04:02:36 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2017-12-14 04:02:36 +0000 |
| commit | 2d81c45170588995c346bf324b2154c4ef59efb3 (patch) | |
| tree | 326b031c2372e00090536348fe5cc6275548ce36 /External/lua-5.2.3 | |
| parent | Added UWP to cmake (diff) | |
| download | DiligentTools-2d81c45170588995c346bf324b2154c4ef59efb3.tar.gz DiligentTools-2d81c45170588995c346bf324b2154c4ef59efb3.zip | |
Optimized CMake files with set_common_target_properties()
Diffstat (limited to 'External/lua-5.2.3')
| -rw-r--r-- | External/lua-5.2.3/CMakeLists.txt | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/External/lua-5.2.3/CMakeLists.txt b/External/lua-5.2.3/CMakeLists.txt index 85f1ab8..afeac23 100644 --- a/External/lua-5.2.3/CMakeLists.txt +++ b/External/lua-5.2.3/CMakeLists.txt @@ -71,9 +71,8 @@ set(INCLUDE src/winappstubs.h ) -add_library( - Lua STATIC ${SOURCE} ${INCLUDE} -) +add_library(Lua STATIC ${SOURCE} ${INCLUDE}) +set_common_target_properties(Lua) target_include_directories(Lua PUBLIC src @@ -85,14 +84,6 @@ 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) |
