From d024e794bde060c315428ac7570fd8354bf37ffa Mon Sep 17 00:00:00 2001 From: Dominik Wernberger Date: Sat, 13 Jul 2024 09:50:47 +0200 Subject: [PATCH] Deactivate some warning --- lib/CMakeLists.txt | 5 +++++ test/CMakeLists.txt | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index 84df2d03..fed49648 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -97,6 +97,11 @@ set(SOURCES # Create library file from sources add_library(${NAME_LIB} SHARED ${SOURCES}) +# Disable warnings +# warning C4996: 'x': This function or variable may be unsafe. Consider using x instead. +# To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. +target_compile_options(${NAME_LIB} PRIVATE $<$:/wd4996>) + target_include_directories(${NAME_LIB} PRIVATE ${COMPOUNDFILEREADER_INCLUDE_DIRS} ${LIB_INCLUDE_DIR} diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 29712ffb..9abab7d3 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -15,6 +15,11 @@ set(HEADERS # Create executable file from sources add_executable(${NAME_TEST} ${SOURCES} ${HEADERS}) +# Disable warnings +# warning C4996: 'x': This function or variable may be unsafe. Consider using x instead. +# To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. +target_compile_options(${NAME_TEST} PRIVATE $<$:/wd4996>) + target_include_directories(${NAME_TEST} PRIVATE ${LIB_INCLUDE_DIR} ${TEST_INCLUDE_DIR}