Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/onqtam/doctest.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Kříž <40214753+DanielKriz@users.noreply.github.com>2022-09-13 05:36:46 +0300
committerGitHub <noreply@github.com>2022-09-13 05:36:46 +0300
commit0593a80594052262c6df4d20f0df573414c19e60 (patch)
treeaa5343514161995e5f514102fa7353eaeff48975
parentb7c21ec5ceeadb4951b00396fc1e4642dd347e5f (diff)
Fix CMake example in docs (#692)
Name of target is different from the name of executable. Therefore this example would fail in the generation phase.
-rw-r--r--doc/markdown/build-systems.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/markdown/build-systems.md b/doc/markdown/build-systems.md
index 05556520..e7c655fc 100644
--- a/doc/markdown/build-systems.md
+++ b/doc/markdown/build-systems.md
@@ -17,8 +17,8 @@ find_package(doctest REQUIRED)
# Make test executable
add_executable(tests main.cpp)
-target_compile_features(test PRIVATE cxx_std_17)
-target_link_libraries(test PRIVATE doctest::doctest)
+target_compile_features(tests PRIVATE cxx_std_17)
+target_link_libraries(tests PRIVATE doctest::doctest)
```
- You can also use the following CMake snippet to automatically fetch the entire **doctest** repository from github and configure it as an external project: