]> granicus.if.org Git - gc/commitdiff
Compile some GC tests as C++ to test extern 'C' in header files
authorJay Krell <jaykrell@microsoft.com>
Thu, 8 Feb 2018 06:26:03 +0000 (09:26 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Thu, 8 Feb 2018 06:26:03 +0000 (09:26 +0300)
Issue #201 (bdwgc).

* tests/CMakeLists.txt (SET_SOURCE_FILES_PROPERTIES): Add to treat
leak_test.c and test.c as C++ files.

tests/CMakeLists.txt

index 26663493f41bd79629c9d0cc6b3f874e8b9a07a0..3c84220b98e218fb447d96811079f29ba4c44d9a 100644 (file)
 
 ADD_DEFINITIONS(-DGC_NOT_DLL)
 
+# Compile some tests as C++ to test extern "C" in header files.
+SET_SOURCE_FILES_PROPERTIES(
+    leak_test.c
+    test.c
+    PROPERTIES LANGUAGE CXX)
+
 ADD_EXECUTABLE(gctest WIN32 test.c)
 TARGET_LINK_LIBRARIES(gctest gc-lib)
 ADD_TEST(NAME gctest COMMAND gctest)