From 1afada97ed8db7f80e042cf11915b56822b8904a Mon Sep 17 00:00:00 2001 From: Ben Vanik Date: Sat, 14 Nov 2020 13:50:40 -0800 Subject: [PATCH] Don't override MSVC CRT defaults. You can't mix CRT modes in binaries, so overriding these here breaks any build that links these files in that isn't also doing these same non-default overrides. PiperOrigin-RevId: 342447232 --- CMakeLists.txt | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e35c3ee..8bfc0d2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -43,18 +43,6 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules") option(MHLO_BUILD_EMBEDDED "Build MHLO as part of another project" OFF) -#------------------------------------------------------------------------------- -# MSVC defaults -#------------------------------------------------------------------------------- - -if(MSVC) - add_compile_options( - $<$:/MD> - $<$:/MD> - $<$:/MD> - ) -endif() - #------------------------------------------------------------------------------- # MLIR/LLVM Configuration #-------------------------------------------------------------------------------