build: static link the CRT for cmake+msvc build
This commit is contained in:
parent
063786bf02
commit
0a165f9dcd
|
|
@ -35,8 +35,11 @@ if (WIN32)
|
||||||
set(CMAKE_EXE_LINKER_FLAGS -Wl,--stack,${STACKSIZE})
|
set(CMAKE_EXE_LINKER_FLAGS -Wl,--stack,${STACKSIZE})
|
||||||
endif (WIN32)
|
endif (WIN32)
|
||||||
|
|
||||||
|
#MSVC: /MT is to static link the CRT.
|
||||||
if (MSVC)
|
if (MSVC)
|
||||||
set(CMAKE_EXE_LINKER_FLAGS /STACK:${STACKSIZE} )
|
set(CMAKE_EXE_LINKER_FLAGS "/STACK:${STACKSIZE}")
|
||||||
|
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} /MT")
|
||||||
|
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} /MTd")
|
||||||
endif (MSVC)
|
endif (MSVC)
|
||||||
|
|
||||||
add_subdirectory(bspinfo)
|
add_subdirectory(bspinfo)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue