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
This commit is contained in:
parent
88a5bde51f
commit
1afada97ed
|
@ -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)
|
option(MHLO_BUILD_EMBEDDED "Build MHLO as part of another project" OFF)
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
# MSVC defaults
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
if(MSVC)
|
|
||||||
add_compile_options(
|
|
||||||
$<$<CONFIG:>:/MD>
|
|
||||||
$<$<CONFIG:Debug>:/MD>
|
|
||||||
$<$<CONFIG:Release>:/MD>
|
|
||||||
)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
# MLIR/LLVM Configuration
|
# MLIR/LLVM Configuration
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue