summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-04-09 19:41:11 (GMT)
committerBrad King <brad.king@kitware.com>2014-04-09 20:44:12 (GMT)
commit9216e5fb1fdffd5c0040ee4ea50e6b3ea6129964 (patch)
tree24acdd236e29b7a3cfc2a5c9bafb22be0d332690 /test
parent56465b5cda39e39676b66d26372c4767dd92ae3b (diff)
downloadCastXML-9216e5fb1fdffd5c0040ee4ea50e6b3ea6129964.zip
CastXML-9216e5fb1fdffd5c0040ee4ea50e6b3ea6129964.tar.gz
CastXML-9216e5fb1fdffd5c0040ee4ea50e6b3ea6129964.tar.bz2
test: Refactor castxml_test_gccxml_common 'std' argument
Pass just the standard name and hard-code '-std=' in the implementation.
Diffstat (limited to 'test')
-rw-r--r--test/CMakeLists.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index 11110ee..5248b72 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -30,7 +30,7 @@ endmacro()
macro(castxml_test_gccxml_common prefix ext std test)
set(command $<TARGET_FILE:castxml>
--castxml-gccxml --castxml-start start
- ${std}
+ -std=${std}
${CMAKE_CURRENT_LIST_DIR}/input/${test}.${ext}
-o ${prefix}.${test}.xml
)
@@ -46,15 +46,15 @@ macro(castxml_test_gccxml_common prefix ext std test)
endmacro()
macro(castxml_test_gccxml test)
- castxml_test_gccxml_common(gccxml cxx -std=c++98 ${test})
+ castxml_test_gccxml_common(gccxml cxx c++98 ${test})
endmacro()
macro(castxml_test_gccxml_broken test)
- castxml_test_gccxml_common(gccxml.broken cxx -std=c++98 ${test})
+ castxml_test_gccxml_common(gccxml.broken cxx c++98 ${test})
endmacro()
macro(castxml_test_gccxml_c test)
- castxml_test_gccxml_common(gccxml.c c -std=c89 ${test})
+ castxml_test_gccxml_common(gccxml.c c c89 ${test})
endmacro()
set(input ${CMAKE_CURRENT_LIST_DIR}/input)