diff --git a/CMakeLists.txt b/CMakeLists.txt index 650f4368a..344968895 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -85,6 +85,7 @@ if (${CMAKE_CXX_COMPILER_ID} STREQUAL MSVC) elseif (${CMAKE_CXX_COMPILER_ID} STREQUAL Clang) set(PRIVATE_COMPILE_OPTIONS "$,,-g;-gcodeview;-fcolor-diagnostics;-Wno-unknown-pragmas;-Wno-unused-parameter>") set(PRIVATE_LINK_OPTIONS "$,,-g>") + add_compile_definitions(printf_s=printf) endif () set(PUBLIC_COMPILE_FEATURES cxx_std_20) set(CMAKE_EXPORT_COMPILE_COMMANDS ON)