projects
/
platform
/
upstream
/
libgc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00220df
)
Compile some GC tests as C++ to test extern 'C' in header files
author
Jay Krell
<jaykrell@microsoft.com>
Thu, 8 Feb 2018 06:26:03 +0000
(09:26 +0300)
committer
Ivan 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
patch
|
blob
|
history
diff --git
a/tests/CMakeLists.txt
b/tests/CMakeLists.txt
index
2666349
..
3c84220
100644
(file)
--- a/
tests/CMakeLists.txt
+++ b/
tests/CMakeLists.txt
@@
-16,6
+16,12
@@
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)