mirror of
https://github.com/aseprite/aseprite.git
synced 2024-12-26 18:21:44 +00:00
Define _CRT_SECURE_NO_WARNINGS on sub-libraries that need it
This commit is contained in:
parent
7b06b74715
commit
285deb603e
@ -90,6 +90,7 @@ add_library(base-lib ${BASE_SOURCES})
|
||||
target_link_libraries(base-lib modp_b64)
|
||||
|
||||
if(WIN32)
|
||||
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
|
||||
target_link_libraries(base-lib dbghelp shlwapi)
|
||||
else()
|
||||
find_library(DL_LIBRARY NAMES dl)
|
||||
|
@ -14,7 +14,9 @@
|
||||
// In MSVC
|
||||
#ifdef _MSC_VER
|
||||
// Avoid warnings about insecure standard C++ functions
|
||||
#ifndef _CRT_SECURE_NO_WARNINGS
|
||||
#define _CRT_SECURE_NO_WARNINGS
|
||||
#endif
|
||||
|
||||
// Disable warning C4355 in MSVC: 'this' used in base member initializer list
|
||||
#pragma warning(disable:4355)
|
||||
|
@ -1,5 +1,9 @@
|
||||
# Aseprite Document Library
|
||||
# Copyright (C) 2001-2015 David Capello
|
||||
# Copyright (C) 2001-2016 David Capello
|
||||
|
||||
if(WIN32)
|
||||
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
|
||||
endif()
|
||||
|
||||
add_library(doc-lib
|
||||
algo.cpp
|
||||
|
@ -1,5 +1,9 @@
|
||||
# ASEPRITE
|
||||
# Copyright (C) 2001-2015 David Capello
|
||||
# Copyright (C) 2001-2016 David Capello
|
||||
|
||||
if(WIN32)
|
||||
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
|
||||
endif()
|
||||
|
||||
add_library(ui-lib
|
||||
accelerator.cpp
|
||||
|
Loading…
Reference in New Issue
Block a user