summaryrefslogtreecommitdiffstats
path: root/External/lua-5.2.3
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-02-13 04:49:39 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-02-13 04:49:39 +0000
commitd1c2c04e3ee11a747e2de3b787be3fd76cfe6f39 (patch)
tree496a71918242f5fc55339419e60bea1e7ed408f0 /External/lua-5.2.3
parentReplaced #ifdef ENGINE_DLL with #if ENGINE_DLL (diff)
downloadDiligentTools-d1c2c04e3ee11a747e2de3b787be3fd76cfe6f39.tar.gz
DiligentTools-d1c2c04e3ee11a747e2de3b787be3fd76cfe6f39.zip
Fixed formatting of cmake files
Diffstat (limited to 'External/lua-5.2.3')
-rw-r--r--External/lua-5.2.3/CMakeLists.txt142
1 files changed, 71 insertions, 71 deletions
diff --git a/External/lua-5.2.3/CMakeLists.txt b/External/lua-5.2.3/CMakeLists.txt
index 6e4ee5c..1696566 100644
--- a/External/lua-5.2.3/CMakeLists.txt
+++ b/External/lua-5.2.3/CMakeLists.txt
@@ -3,104 +3,104 @@ cmake_minimum_required (VERSION 3.6)
project(Lua CXX)
set(SOURCE
- src/lapi.c
- src/lauxlib.c
- src/lbaselib.c
- src/lbitlib.c
- src/lcode.c
- src/lcorolib.c
- src/lctype.c
- src/ldblib.c
- src/ldebug.c
- src/ldo.c
- src/ldump.c
- src/lfunc.c
- src/lgc.c
- src/linit.c
- src/liolib.c
- src/llex.c
- src/lmathlib.c
- src/lmem.c
- src/loadlib.c
- src/lobject.c
- src/lopcodes.c
- src/loslib.c
- src/lparser.c
- src/lstate.c
- src/lstring.c
- src/lstrlib.c
- src/ltable.c
- src/ltablib.c
- src/ltm.c
+ src/lapi.c
+ src/lauxlib.c
+ src/lbaselib.c
+ src/lbitlib.c
+ src/lcode.c
+ src/lcorolib.c
+ src/lctype.c
+ src/ldblib.c
+ src/ldebug.c
+ src/ldo.c
+ src/ldump.c
+ src/lfunc.c
+ src/lgc.c
+ src/linit.c
+ src/liolib.c
+ src/llex.c
+ src/lmathlib.c
+ src/lmem.c
+ src/loadlib.c
+ src/lobject.c
+ src/lopcodes.c
+ src/loslib.c
+ src/lparser.c
+ src/lstate.c
+ src/lstring.c
+ src/lstrlib.c
+ src/ltable.c
+ src/ltablib.c
+ src/ltm.c
# src/lua.c
# src/luac.c
- src/lundump.c
- src/lvm.c
- src/lzio.c
+ src/lundump.c
+ src/lvm.c
+ src/lzio.c
)
# We need to compile all source files with c++ compiler
set_source_files_properties(${SOURCE} PROPERTIES LANGUAGE CXX)
set(INCLUDE
- src/lapi.h
- src/lauxlib.h
- src/lcode.h
- src/lctype.h
- src/ldebug.h
- src/ldo.h
- src/lfunc.h
- src/lgc.h
- src/llex.h
- src/llimits.h
- src/lmem.h
- src/lobject.h
- src/lopcodes.h
- src/lparser.h
- src/lstate.h
- src/lstring.h
- src/ltable.h
- src/ltm.h
- src/lua.h
- src/lua.hpp
- src/luaconf.h
- src/lualib.h
- src/lundump.h
- src/lvm.h
- src/lzio.h
- src/winappstubs.h
+ src/lapi.h
+ src/lauxlib.h
+ src/lcode.h
+ src/lctype.h
+ src/ldebug.h
+ src/ldo.h
+ src/lfunc.h
+ src/lgc.h
+ src/llex.h
+ src/llimits.h
+ src/lmem.h
+ src/lobject.h
+ src/lopcodes.h
+ src/lparser.h
+ src/lstate.h
+ src/lstring.h
+ src/ltable.h
+ src/ltm.h
+ src/lua.h
+ src/lua.hpp
+ src/luaconf.h
+ src/lualib.h
+ src/lundump.h
+ src/lvm.h
+ src/lzio.h
+ src/winappstubs.h
)
add_library(Lua STATIC ${SOURCE} ${INCLUDE})
set_common_target_properties(Lua)
target_include_directories(Lua PUBLIC
- src
+ src
)
target_link_libraries(Lua PRIVATE BuildSettings)
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)
+ # Disable MSVC-specific warnings
+ target_compile_definitions(Lua PRIVATE -D_CRT_SECURE_NO_WARNINGS)
+ target_compile_options(Lua PRIVATE /W3 /wd4244 /wd4334 /wd4702)
endif(MSVC)
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR
CMAKE_CXX_COMPILER_ID MATCHES "GNU")
- # Setting LANGUAGE to CXX is not enough for clang, so use -x c++ to compile c files as c++ and suppress
- # the following warning:
- # clang++.exe: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
- target_compile_options(Lua PRIVATE -x c++)
-
- # For loslib.c, disable the following
- # warning: 'tmpnam' is deprecated: tempnam is unsafe, use mkstemp or tmpfile instead [-Wdeprecated-declarations]
- set_source_files_properties(src/loslib.c PROPERTIES COMPILE_FLAGS -Wno-deprecated-declarations)
+ # Setting LANGUAGE to CXX is not enough for clang, so use -x c++ to compile c files as c++ and suppress
+ # the following warning:
+ # clang++.exe: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
+ target_compile_options(Lua PRIVATE -x c++)
+
+ # For loslib.c, disable the following
+ # warning: 'tmpnam' is deprecated: tempnam is unsafe, use mkstemp or tmpfile instead [-Wdeprecated-declarations]
+ set_source_files_properties(src/loslib.c PROPERTIES COMPILE_FLAGS -Wno-deprecated-declarations)
endif()
source_group("src" FILES ${SOURCE})
source_group("include" FILES ${INCLUDE})
set_target_properties(Lua PROPERTIES
- FOLDER Tools/External
+ FOLDER Tools/External
) \ No newline at end of file