MISC3: Fed up with warning 4996 spam on MSVC, silence it for good in CMake

This commit is contained in:
vsonnier 2017-02-14 18:36:20 +01:00
parent c0dafb3197
commit e173eec3ef

View File

@ -652,7 +652,10 @@ IF (MSVC)
set_target_properties(CubicSDR PROPERTIES COMPILE_DEFINITIONS_MINSIZEREL "_WINDOWS") set_target_properties(CubicSDR PROPERTIES COMPILE_DEFINITIONS_MINSIZEREL "_WINDOWS")
set(CMAKE_CREATE_WIN32_EXE "/SUBSYSTEM:WINDOWS /ENTRY:\"mainCRTStartup\"") set(CMAKE_CREATE_WIN32_EXE "/SUBSYSTEM:WINDOWS /ENTRY:\"mainCRTStartup\"")
set_target_properties (CubicSDR PROPERTIES OUTPUT_NAME "${CUBICSDR_INSTALL_NAME}") set_target_properties (CubicSDR PROPERTIES OUTPUT_NAME "${CUBICSDR_INSTALL_NAME}")
ADD_DEFINITIONS(
/wd\"4996\"
)
ENDIF(MSVC) ENDIF(MSVC)
IF (APPLE) IF (APPLE)