#
# 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)
# Increase warning level on MSVC
# CMake puts /W3 in CMAKE_CXX_FLAGS which will be appended later, so we need to replace
# Increase warning level on MSVC
# CMake puts /W3 in CMAKE_CXX_FLAGS which will be appended later, so we need to replace