azadkuh / sqlite-amalgamation

The SQLite amalgamation mirror with cmake
http://www.sqlite.org/amalgamation.html
BSD 3-Clause "New" or "Revised" License
92 stars 63 forks source link

cl : Command line warning D9025 : overriding '/MDd' with '/MTd' #1

Closed ludekvodicka closed 6 years ago

ludekvodicka commented 6 years ago

Hi,

when using your cmake there is a problem with Debug version

Following command

cmake .. -G %Platform% -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=%LIB_DEST%

caused that this C_FLAGS are generated (flags.make file)

# CMAKE generated file: DO NOT EDIT!
# Generated by "NMake Makefiles" Generator, CMake Version 3.7

# compile C with C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe
C_FLAGS = /DWIN32 /D_WINDOWS /W3 /D_DEBUG /MDd /Zi /Ob0 /Od /RTC1 -MTd  
C_DEFINES = 
C_INCLUDES = 

As you can see, there is /MDd together with -MTd. This is problem only with Debug, release is correctly configured to use only one flag.

azadkuh commented 6 years ago

@ludekvodicka hi.

would you please check your build by adding this flag:

$> cmake __your_options__ -DBUILD_MT_RELEASE=OFF

this option is ON by default.

ludekvodicka commented 6 years ago

Sorry for not get back earlier. You're right. This flag works great!