mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 20:53:50 +00:00
Debug MSVC build of openmw needs number of sections beyond 2^16
This commit is contained in:
parent
f9d2fde783
commit
ce8d327e8e
1 changed files with 7 additions and 0 deletions
|
@ -159,3 +159,10 @@ if (BUILD_WITH_CODE_COVERAGE)
|
||||||
add_definitions (--coverage)
|
add_definitions (--coverage)
|
||||||
target_link_libraries(openmw gcov)
|
target_link_libraries(openmw gcov)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if (MSVC)
|
||||||
|
# Debug version needs increased number of sections beyond 2^16
|
||||||
|
if (CMAKE_CL_64)
|
||||||
|
set (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /bigobj")
|
||||||
|
endif (CMAKE_CL_64)
|
||||||
|
endif (MSVC)
|
||||||
|
|
Loading…
Reference in a new issue