Skip to content

Commit

Permalink
These definitions are needed to compile with Visual C++
Browse files Browse the repository at this point in the history
Also choose to use the non DLL version of the Visual C++ runtime library, so that the runtime library is staticly linked
  • Loading branch information
mozinator authored and timblechmann committed Dec 19, 2010
1 parent 6468274 commit 4b0ec40
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Expand Up @@ -52,7 +52,11 @@ elseif(CMAKE_SYSTEM_NAME MATCHES "Linux")
endif()

if(WIN32)
add_definitions("-DSC_WIN32")
set_property(DIRECTORY
APPEND
PROPERTY COMPILE_DEFINITIONS SC_WIN32 NOMINMAX _WINSOCKAPI_)
SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_RELEASE} /MTd")
SET(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_DEBUG} /MT")
endif()


Expand Down

0 comments on commit 4b0ec40

Please sign in to comment.