build: Don't modify CMAKE_XXX_FLAGS directly

This commit is contained in:
WerWolv
2025-08-11 17:43:31 +02:00
parent c4d167f8d4
commit b566d31f28

View File

@@ -461,8 +461,8 @@ macro(configureCMake)
set(CMAKE_LINKER ${LD_LLD_PATH})
if (NOT XCODE AND NOT MSVC)
set(CMAKE_C_FLAGS ${CMAKE_C_FLAGS} -fuse-ld=lld)
set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} -fuse-ld=lld)
add_link_options("-fuse-ld=lld")
add_link_options("-fuse-ld=lld")
endif()
else ()
message(WARNING "lld not found, using default linker!")