]> granicus.if.org Git - gc/commitdiff
Fix 'unresolved external symbol _main' in gctest reported by MS VC
authorIvan Maidanski <ivmai@mail.ru>
Wed, 19 Jun 2019 20:41:38 +0000 (23:41 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Wed, 19 Jun 2019 20:41:38 +0000 (23:41 +0300)
(fix of commit 78c458958)

Issue #281 (bdwgc).

* CMakeLists.txt [build_tests && enable_cplusplus] (test_cpp): Add WIN32
in add_executable specification.

CMakeLists.txt

index c0df95f6a137fb998650aafdbff7132cab17323e..a6e242b656c8184b0242f0c15c218b7b53532eb6 100644 (file)
@@ -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()