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

summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChris Thrasher2024-04-11 07:39:08 -0600
committerGitHub2024-04-11 15:39:08 +0200
commit838f8d71cbcab1007158fc70cd7c50a4acbd26e2 (patch)
tree81438c6f9bcdf2dec16ee2596db39974dfff6715
parentb5373dadca40b7edc8570cf9470b9b1cb1934d40 (diff)
downloadcatch3-838f8d71cbcab1007158fc70cd7c50a4acbd26e2.tar.gz
Remove unnecessary CMake variables (#2853)
* Remove unnecessary variable * Remove unused variable
-rw-r--r--CMakeLists.txt2
-rw-r--r--examples/CMakeLists.txt3
2 files changed, 1 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7c3e855a..958d3823 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -76,8 +76,6 @@ endif()
set(CATCH_DIR ${CMAKE_CURRENT_SOURCE_DIR})
set(SOURCES_DIR ${CATCH_DIR}/src/catch2)
set(SELF_TEST_DIR ${CATCH_DIR}/tests/SelfTest)
-set(BENCHMARK_DIR ${CATCH_DIR}/tests/Benchmark)
-set(EXAMPLES_DIR ${CATCH_DIR}/examples)
# We need to bring-in the variables defined there to this scope
add_subdirectory(src)
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
index 82734ada..7e629e09 100644
--- a/examples/CMakeLists.txt
+++ b/examples/CMakeLists.txt
@@ -43,8 +43,7 @@ set( TARGETS_IDIOMATIC_EXAMPLES ${BASENAMES_IDIOMATIC_EXAMPLES} )
foreach( name ${TARGETS_IDIOMATIC_EXAMPLES} )
- add_executable( ${name}
- ${EXAMPLES_DIR}/${name}.cpp )
+ add_executable( ${name} ${name}.cpp )
endforeach()
set(ALL_EXAMPLE_TARGETS