Re: [pcre-dev] [PATCH] Quash deprecation warnings on Windows

Αρχική Σελίδα
Delete this message
Συντάκτης: Graycode
Ημερομηνία:  
Προς: pcre-dev
Αντικείμενο: Re: [pcre-dev] [PATCH] Quash deprecation warnings on Windows
On Wed, 5 Dec 2012, Daniel Richard G. wrote:

> The attached patch adds _CRT_SECURE_NO_WARNINGS to the CMake config header
> template to shoo these away.


Yet the CMakeLists.txt file currently contains:

IF(MSVC)
        ADD_DEFINITIONS(-D_CRT_SECURE_NO_DEPRECATE)
ENDIF(MSVC)


I'm not a Cmake user, but that seems a more appropriate place for
settings that are unique to a particular compiler brand and version.


Graycode