diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index 84df2d0..fed4964 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 29712ff..9abab7d 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}