From: Ivan Maidanski <ivmai@mail.ru> Date: Wed, 19 Jun 2019 20:41:38 +0000 (+0300) Subject: Fix 'unresolved external symbol _main' in gctest reported by MS VC X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=08e4b88455b15256692226bb9ea53d879458e5a5;p=gc Fix 'unresolved external symbol _main' in gctest reported by MS VC (fix of commit 78c458958) Issue #281 (bdwgc). * CMakeLists.txt [build_tests && enable_cplusplus] (test_cpp): Add WIN32 in add_executable specification. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index c0df95f6..a6e242b6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -349,7 +349,7 @@ if (build_tests) endif() if (enable_cplusplus) - add_executable(test_cpp tests/test_cpp.cc) + add_executable(test_cpp WIN32 tests/test_cpp.cc) target_link_libraries(test_cpp PRIVATE gc) add_test(NAME test_cpp COMMAND test_cpp) endif()