#
# Redistribution and use is allowed according to the terms of the BSD license.
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
#
# Redistribution and use is allowed according to the terms of the BSD license.
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
# Check for and set linker flags
check_and_set_linker_flag("-Wl,-z,relro" RELRO LINKER_FLAGS)
check_and_set_linker_flag("-Wl,-z,now" NOW LINKER_FLAGS)
# Check for and set linker flags
check_and_set_linker_flag("-Wl,-z,relro" RELRO LINKER_FLAGS)
check_and_set_linker_flag("-Wl,-z,now" NOW LINKER_FLAGS)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4456")
# C4458: declaration of 'identifier' hides class member
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4458")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4456")
# C4458: declaration of 'identifier' hides class member
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4458")
# Link against the correct version of the C runtime
set(CMAKE_EXE_LINKER_FLAGS_RELEASE "/NODEFAULTLIB:libcmt /DEFAULTLIB:msvcrt ${CMAKE_EXE_LINKER_FLAGS_RELEASE}")
# Link against the correct version of the C runtime
set(CMAKE_EXE_LINKER_FLAGS_RELEASE "/NODEFAULTLIB:libcmt /DEFAULTLIB:msvcrt ${CMAKE_EXE_LINKER_FLAGS_RELEASE}")