Skip to content

Commit

Permalink
Added printf=printf_s macro for Clang
Browse files Browse the repository at this point in the history
This fixes an error where printf_s doesn't exist.
  • Loading branch information
UE4SS committed Sep 13, 2023
1 parent bfece1b commit 445459b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ if (${CMAKE_CXX_COMPILER_ID} STREQUAL MSVC)
elseif (${CMAKE_CXX_COMPILER_ID} STREQUAL Clang)
set(PRIVATE_COMPILE_OPTIONS "$<IF:$<COMPILE_LANGUAGE:ASM_MASM>,,-g;-gcodeview;-fcolor-diagnostics;-Wno-unknown-pragmas;-Wno-unused-parameter>")
set(PRIVATE_LINK_OPTIONS "$<IF:$<COMPILE_LANGUAGE:ASM_MASM>,,-g>")
add_compile_definitions(printf_s=printf)
endif ()
set(PUBLIC_COMPILE_FEATURES cxx_std_20)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
Expand Down

0 comments on commit 445459b

Please sign in to comment.