From c2366db3886dc6c91b2e6decc00a01334c694c4c Mon Sep 17 00:00:00 2001 From: alef Date: Sun, 20 Sep 2026 13:41:14 +0200 Subject: [PATCH] MSVC complains cl.exe used for both C and C++ C used to build third-party libs --- build-scripts/MSVC.cmake | 5 ----- 1 file changed, 5 deletions(-) diff --git a/build-scripts/MSVC.cmake b/build-scripts/MSVC.cmake index e5e511c2c77..2f232f1ce87 100644 --- a/build-scripts/MSVC.cmake +++ b/build-scripts/MSVC.cmake @@ -24,10 +24,6 @@ Remove /RTC1 #]=======================================================================] -# Path has changed, so this configure run will find cl.exe -set(CMAKE_C_COMPILER cl.exe) -set(CMAKE_CXX_COMPILER ${CMAKE_C_COMPILER}) - # C++ flags used by all builds add_compile_options( /MP # cl.exe build with multiple processes @@ -50,7 +46,6 @@ add_compile_options( /wd26495 # uninitialized mamber /WX- # do not tread warnings as errors /W1 # warning level - /TP # every source file is a C++ file /Zc:forScope # force conformace in for loop scope /Zc:inline # remove unreferenced COMDAT /Zc:wchar_t # wchar_t is native type