Add a compile option to suppress fopen deprecated warning (#1035)

This commit is contained in:
Koji KITAYAMA 2022-10-17 07:22:25 +09:00 committed by GitHub
parent 8c6963d7ed
commit e22807bc2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,4 +6,7 @@ set(CMAKE_CXX_STANDARD 14)
add_subdirectory(../../src/common/boot_uf2 boot_uf2_headers)
add_executable(elf2uf2 main.cpp)
if (WIN32 AND NOT MINGW AND (CMAKE_CXX_COMPILER_ID STREQUAL "Clang"))
target_compile_definitions(elf2uf2 PRIVATE _CRT_SECURE_NO_WARNINGS)
endif()
target_link_libraries(elf2uf2 boot_uf2_headers)