diff options
| author | Petr Kubánek | 2022-05-24 10:07:17 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2022-06-05 15:58:41 +0200 |
| commit | 0c13d021da4ff937a33279207fb57e000781d86c (patch) | |
| tree | 972f655a95c7a96479600a17e4f71a2e0ba13f08 /examples/110-Fix-ClassFixture.cpp | |
| parent | 3644b4135d2f4ec37fe6858dfc03b6273b0948ef (diff) | |
| download | catch3-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/110-Fix-ClassFixture.cpp')
| -rw-r--r-- | examples/110-Fix-ClassFixture.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/110-Fix-ClassFixture.cpp b/examples/110-Fix-ClassFixture.cpp index 20601ac6..75c10da6 100644 --- a/examples/110-Fix-ClassFixture.cpp +++ b/examples/110-Fix-ClassFixture.cpp @@ -52,8 +52,11 @@ TEST_CASE_METHOD( UniqueTestsFixture, "Create Employee/Normal", "[create]" ) { } // Compile & run: -// - g++ -std=c++11 -Wall -I$(CATCH_SINGLE_INCLUDE) -o 110-Fix-ClassFixture 110-Fix-ClassFixture.cpp && 110-Fix-ClassFixture --success +// - g++ -std=c++14 -Wall -I$(CATCH_SINGLE_INCLUDE) -o 110-Fix-ClassFixture 110-Fix-ClassFixture.cpp && 110-Fix-ClassFixture --success // - cl -EHsc -I%CATCH_SINGLE_INCLUDE% 110-Fix-ClassFixture.cpp && 110-Fix-ClassFixture --success +// +// Compile with pkg-config: +// - g++ -std=c++14 -Wall $(pkg-config catch2-with-main --cflags) -o 110-Fix-ClassFixture 110-Fix-ClassFixture.cpp $(pkg-config catch2-with-main --libs) // Expected compact output (all assertions): // |