From e2a65adbc0cc2dee6979e800b722cdd44bec983a Mon Sep 17 00:00:00 2001 From: silver Date: Thu, 12 Oct 2017 21:17:23 +0200 Subject: [PATCH] added dbghelp lib and bigobj to cmake for msvc --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a9ee55f61..9f586d14f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -268,12 +268,16 @@ target_link_libraries(torrent-rasterbar ${Boost_LIBRARIES} ${CMAKE_THREAD_LIBS_I if (WIN32) target_link_libraries(torrent-rasterbar wsock32 ws2_32 Iphlpapi) + target_link_libraries(torrent-rasterbar debug dbghelp) add_definitions(-D_WIN32_WINNT=0x0600) # prevent winsock1 to be included add_definitions(-DWIN32_LEAN_AND_MEAN) if (MSVC) add_definitions(-DBOOST_ALL_NO_LIB) - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP") # multicore compilation + # for multicore compilation + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP") + # increase the number of sections for obj files + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /bigobj") endif() endif()