From 94a6fc78f423e18404e13ef271cc3fdbe77472ac Mon Sep 17 00:00:00 2001 From: Jared Mulconry Date: Fri, 15 Sep 2017 18:27:59 +1000 Subject: [PATCH] Addressed last remaining warning under MSVC caused by use of 'deprecated' fopen. --- contrib/irrXML/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/contrib/irrXML/CMakeLists.txt b/contrib/irrXML/CMakeLists.txt index 980bd99a4..48941970a 100644 --- a/contrib/irrXML/CMakeLists.txt +++ b/contrib/irrXML/CMakeLists.txt @@ -8,6 +8,11 @@ set( IrrXML_SRCS irrXML.h ) +if ( MSVC ) + ADD_DEFINITIONS( -D_SCL_SECURE_NO_WARNINGS ) + ADD_DEFINITIONS( -D_CRT_SECURE_NO_WARNINGS ) +endif ( MSVC ) + add_library(IrrXML STATIC ${IrrXML_SRCS}) set(IRRXML_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}" CACHE INTERNAL "IrrXML_Include" ) set(IRRXML_LIBRARY "IrrXML" CACHE INTERNAL "IrrXML" )