Skip to content

Commit

Permalink
Link VC runtime library statically
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephan Brenner committed Dec 26, 2013
1 parent f12d00e commit 5f23e75
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Expand Up @@ -5,6 +5,11 @@ enable_testing()
add_definitions(-DUNICODE -D_UNICODE)

if(CMAKE_SYSTEM_NAME STREQUAL Windows)
set (CMAKE_C_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -MTd")
set (CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -MT")
set (CMAKE_C_FLAGS_MINSIZEREL "${CMAKE_C_FLAGS_MINSIZEREL} -MT")
set (CMAKE_C_FLAGS_RELWITHDEBINFO "${CMAKE_C_FLAGS_RELWITHDEBINFO} -MT")

add_definitions(/W4)
add_definitions(/WX)
add_executable(autoproxy-helper main.c logic.c logic-windows.c)
Expand Down

0 comments on commit 5f23e75

Please sign in to comment.