Skip to content

Commit

Permalink
Fix MSVC linker error
Browse files Browse the repository at this point in the history
Fix error C1128: number of sections exceeded object file format limit.
  • Loading branch information
vitaut committed Dec 8, 2014
1 parent c903de7 commit cc0f168
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ add_mp_test(function-test function-test.cc LIBS function)
if (TARGET amplgsl)
include_directories(${GSL_BINARY_DIR})
add_mp_test(gsl-test gsl-test.cc LIBS function gsl gslcblas)
if (MSVC)
# Fix error C1128: number of sections exceeded object file format limit.
set_target_properties(gsl-test PROPERTIES LINK_FLAGS "/bigobj")
endif ()
endif ()

add_mp_test(cp-test cp-test.cc LIBS function)
Expand Down

0 comments on commit cc0f168

Please sign in to comment.