Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/examples/000-CatchMain.cpp
diff options
context:
space:
mode:
authorMartin Hořeňovský2019-12-08 15:55:04 +0100
committerMartin Hořeňovský2019-12-08 15:55:04 +0100
commit70ef2f7f12c2c62714a2e926679172142ea150ff (patch)
tree8e4e09bcaded8a521285ce65258923c79eae9c7f /examples/000-CatchMain.cpp
parent248f922465309caa549c126f795f909e8cd69a1e (diff)
downloadcatch3-70ef2f7f12c2c62714a2e926679172142ea150ff.tar.gz
Update building of examples for static lib
Diffstat (limited to 'examples/000-CatchMain.cpp')
-rw-r--r--examples/000-CatchMain.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/examples/000-CatchMain.cpp b/examples/000-CatchMain.cpp
index 2894d425..0580b932 100644
--- a/examples/000-CatchMain.cpp
+++ b/examples/000-CatchMain.cpp
@@ -1,12 +1,10 @@
// 000-CatchMain.cpp
-// In a Catch project with multiple files, dedicate one file to compile the
-// source code of Catch itself and reuse the resulting object file for linking.
+// It is generally recommended to have a single file provide the main
+// of a testing binary, and other test files to link against it.
// Let Catch provide main():
-#define CATCH_CONFIG_MAIN
-
-#include <catch2/catch.hpp>
+#include <catch2/catch_default_main.hpp>
// That's it