|
|
@@ -29,3 +29,23 @@ set_tests_properties(Misc
|
|
|
PROPERTIES
|
|
|
LABELS "Catch"
|
|
|
)
|
|
|
+
|
|
|
+add_executable(Issue2181
|
|
|
+ issue2181.cpp # Cannot be linked with other tests
|
|
|
+)
|
|
|
+
|
|
|
+set_target_properties(Issue2181 PROPERTIES UNITY_BUILD OFF)
|
|
|
+
|
|
|
+add_test(Issue2181 Issue2181)
|
|
|
+
|
|
|
+set_tests_properties(Issue2181
|
|
|
+ PROPERTIES
|
|
|
+ LABELS "Catch"
|
|
|
+)
|
|
|
+
|
|
|
+if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
|
|
+ target_compile_options(Issue2181
|
|
|
+ PRIVATE
|
|
|
+ -Wno-keyword-macro # keyword is hidden by macro definition
|
|
|
+ )
|
|
|
+endif()
|