Skip to content

Commit

Permalink
Fix test linking failing with MSVC due to too big object file
Browse files Browse the repository at this point in the history
Add "/bigobj" to MSVC compile flags to avoid this problem.

Closes #1124.
  • Loading branch information
mkaes authored and vadz committed Mar 6, 2024
1 parent 0c26c65 commit 41303bf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ colormsg(_HIBLUE_ "Configuring SOCI tests:")
# This works around a problem when building in C++11 mode with clang (see #984).
add_definitions(-DCATCH_CONFIG_CPP11_NO_SHUFFLE)

if(MSVC)
add_compile_options(/bigobj)
endif()

include_directories(
${SOCI_SOURCE_DIR}/include/private
${CMAKE_CURRENT_SOURCE_DIR})
Expand Down

0 comments on commit 41303bf

Please sign in to comment.