win32/detectenv-msvc.mak: Make it usable from Visual Studio projects

As in the version in of this NMake Makefile module in G-I, support
CFG == Release|Debug, which is what is used in the Visual Studio
projects, so that:

-This file will be in sync with the one in G-I
-Other projects that make use of this can integrate this NMake Makefile
 module in their Visual Studio project files.
This commit is contained in:
Chun-wei Fan 2017-02-17 17:54:23 +08:00
parent 08825d2c21
commit d0ffee8feb

View File

@ -57,7 +57,7 @@ version is not supported.
!endif
VALID_CFGSET = FALSE
!if "$(CFG)" == "release" || "$(CFG)" == "debug"
!if "$(CFG)" == "release" || "$(CFG)" == "debug" || "$(CFG)" == "Release" || "$(CFG)" == "Debug"
VALID_CFGSET = TRUE
!endif
@ -65,7 +65,7 @@ VALID_CFGSET = TRUE
# using .pdb files for release builds
CFLAGS_BASE = /Zi
!if "$(CFG)" == "release"
!if "$(CFG)" == "release" || "$(CFG)" == "Release"
CFLAGS_ADD = /MD /O2 $(CFLAGS_BASE)
!else
CFLAGS_ADD = /MDd /Od $(CFLAGS_BASE)