cmake, enable multicore compiling with msvc

This commit is contained in:
Arvid Norberg 2014-05-10 23:46:50 +00:00
parent 22491740e5
commit a3451e43ea
1 changed files with 1 additions and 0 deletions

View File

@ -221,6 +221,7 @@ endif()
if (WIN32)
target_link_libraries(torrent-rasterbar wsock32 ws2_32)
add_definitions(-D_WIN32_WINNT=0x0500)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP") # multicore compilation
endif()
if (encryption)