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

summaryrefslogtreecommitdiffhomepage
path: root/examples/020-TestCase-1.cpp
diff options
context:
space:
mode:
authorPetr Kubánek2022-05-24 10:07:17 +0200
committerMartin Hořeňovský2022-06-05 15:58:41 +0200
commit0c13d021da4ff937a33279207fb57e000781d86c (patch)
tree972f655a95c7a96479600a17e4f71a2e0ba13f08 /examples/020-TestCase-1.cpp
parent3644b4135d2f4ec37fe6858dfc03b6273b0948ef (diff)
downloadcatch3-0c13d021da4ff937a33279207fb57e000781d86c.tar.gz
Update documentation - add pkg-config examples.
Use -std=c++14 (instead of c++11). Pointers how to integrate with pkg-config for non-CMake projects.
Diffstat (limited to 'examples/020-TestCase-1.cpp')
-rw-r--r--examples/020-TestCase-1.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/020-TestCase-1.cpp b/examples/020-TestCase-1.cpp
index 5d7d8de6..cec55799 100644
--- a/examples/020-TestCase-1.cpp
+++ b/examples/020-TestCase-1.cpp
@@ -10,8 +10,8 @@ TEST_CASE( "1: All test cases reside in other .cpp files (empty)", "[multi-file:
// Here just to show there are two source files via option --list-tests.
// Compile & run:
-// - g++ -std=c++11 -Wall -I$(CATCH_SINGLE_INCLUDE) -c 020-TestCase-1.cpp
-// - g++ -std=c++11 -Wall -I$(CATCH_SINGLE_INCLUDE) -o 020-TestCase TestCase-1.o 020-TestCase-2.cpp && 020-TestCase --success
+// - g++ -std=c++14 -Wall -I$(CATCH_SINGLE_INCLUDE) -c 020-TestCase-1.cpp
+// - g++ -std=c++14 -Wall -I$(CATCH_SINGLE_INCLUDE) -o 020-TestCase TestCase-1.o 020-TestCase-2.cpp && 020-TestCase --success
//
// - cl -EHsc -I%CATCH_SINGLE_INCLUDE% -c 020-TestCase-1.cpp
// - cl -EHsc -I%CATCH_SINGLE_INCLUDE% -Fe020-TestCase.exe 020-TestCase-1.obj 020-TestCase-2.cpp && 020-TestCase --success