Skip to content

Commit

Permalink
ignore deprecated warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
christianrauch committed Jan 21, 2024
1 parent f2ff13d commit 8fabc12
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND CMAKE_CXX_SIMULATE_ID MATCHES "MSVC
# error: 'strdup' is deprecated: The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _strdup.
# "strdup" is standard since C23
add_compile_options(-D _CRT_NONSTDC_NO_DEPRECATE)
# ignore "'fopen' is deprecated" and "'strncpy' is deprecated" warnings
# TODO: replace by fopen_s and strncpy_s in C11
add_definitions(-D _CRT_SECURE_NO_WARNINGS)
endif()

aux_source_directory(common COMMON_SRC)
Expand Down

0 comments on commit 8fabc12

Please sign in to comment.