diff options
author | madmaxoft <github@xoft.cz> | 2014-01-15 12:01:03 +0100 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-01-15 12:01:03 +0100 |
commit | d23e743303d25eed44a91b0c4733ce55857038c0 (patch) | |
tree | 744aa242d4c942b7fcc26a6046a118b91c8906dd /lib | |
parent | CMake: MSVC builds use static CRT. (diff) | |
download | cuberite-d23e743303d25eed44a91b0c4733ce55857038c0.tar cuberite-d23e743303d25eed44a91b0c4733ce55857038c0.tar.gz cuberite-d23e743303d25eed44a91b0c4733ce55857038c0.tar.bz2 cuberite-d23e743303d25eed44a91b0c4733ce55857038c0.tar.lz cuberite-d23e743303d25eed44a91b0c4733ce55857038c0.tar.xz cuberite-d23e743303d25eed44a91b0c4733ce55857038c0.tar.zst cuberite-d23e743303d25eed44a91b0c4733ce55857038c0.zip |
Diffstat (limited to '')
-rw-r--r-- | lib/lua/CMakeLists.txt | 1 | ||||
-rw-r--r-- | lib/zlib/CMakeLists.txt | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/lib/lua/CMakeLists.txt b/lib/lua/CMakeLists.txt index 4a77578dd..9052da194 100644 --- a/lib/lua/CMakeLists.txt +++ b/lib/lua/CMakeLists.txt @@ -27,6 +27,7 @@ if (WIN32) SET_TARGET_PROPERTIES(lua PROPERTIES PREFIX "../") SET_TARGET_PROPERTIES(lua PROPERTIES IMPORT_PREFIX "../") + # Remove SCL warnings, we expect this library to have been tested safe SET_TARGET_PROPERTIES( lua PROPERTIES COMPILE_FLAGS "-D_CRT_SECURE_NO_WARNINGS" ) diff --git a/lib/zlib/CMakeLists.txt b/lib/zlib/CMakeLists.txt index fe6dba6ae..b1b74031d 100644 --- a/lib/zlib/CMakeLists.txt +++ b/lib/zlib/CMakeLists.txt @@ -9,3 +9,11 @@ file(GLOB SOURCE ) add_library(zlib ${SOURCE}) + +if (MSVC) + # Remove SCL warnings, we expect this library to have been tested safe + SET_TARGET_PROPERTIES( + zlib PROPERTIES COMPILE_FLAGS "-D_CRT_SECURE_NO_WARNINGS" + ) +endif() + |