-
-
Notifications
You must be signed in to change notification settings - Fork 264
Remove MSVC warning D9025 overriding '/MD' with '/MT' #443
Copy link
Copy link
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
The Windows builds using cl.exe, for example "MSVC 2022 / LLVM 13 @ Windows Release" produce the warning D9025:
[1/12 0.1/sec] Building CXX object CMakeFiles\insights.dir\DPrint.cpp.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
cl : Command line warning D9025 : overriding '/EHs' with '/EHs-'
cl : Command line warning D9025 : overriding '/EHc' with '/EHc-'
cl : Command line warning D9025 : overriding '/GR' with '/GR-'
The full output can be found here github.com/andreasfertig/cppinsights/runs/5076959142
The values MT, EHs-, ... are obtained from llvm-config github.com/andreasfertig/cppinsights/runs/5076959142:
-- llvm_config(LLVM_CXXFLAGS)=>/external:I D:\a\cppinsights\cppinsights\current\include /EHs-c- /GR- -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -DUNICODE -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS;
It looks likes cmake sets some kind of default (MD) which is not correctly overridden.
The values from llvm_config should be used for the build, other defaults should be removed.
Andreas
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request