Closed GoogleCodeExporter closed 9 years ago
The /bigobj option is not supported on VC 7.1, and will need to be applied
conditionally. This makes the build file more complex, and a simpler solution
is preferable. Can you check whether compiling the gtest library as multiple
source files instead of just one fixes the issue? Here is the patch to apply:
Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt (revision 592)
+++ CMakeLists.txt (working copy)
@@ -67,7 +67,13 @@
# Google Test libraries. We build them using more strict warnings than what
# are used for other targets, to ensure that gtest can be compiled by a user
# aggressive about warnings.
-cxx_library(gtest "${cxx_strict}" src/gtest-all.cc)
+cxx_library(gtest "${cxx_strict}" src/gtest.cc
+ src/gtest-death-test.cc
+ src/gtest-filepath.cc
+ src/gtest-port.cc
+ src/gtest-printers.cc
+ src/gtest-test-part.cc
+ src/gtest-typed-test.cc)
cxx_library(gtest_main "${cxx_strict}" src/gtest_main.cc)
target_link_libraries(gtest_main gtest)
Original comment by vladlosev
on 22 Sep 2011 at 7:47
Closed for the lack of reporter's response.
Original comment by vladlosev
on 16 Oct 2011 at 5:00
Original issue reported on code.google.com by
BitO...@gmail.com
on 13 Sep 2011 at 8:10Attachments: