From 57bdc79ee72d805bc640e0e4a65d2de8702f29ba Mon Sep 17 00:00:00 2001 From: Andrew Noyes Date: Thu, 5 Jun 2025 10:37:03 -0400 Subject: [PATCH] Run tests from source dir to find test.json --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6254c3c..7c2acbb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -157,7 +157,7 @@ add_executable(mytest src/test.cpp) target_include_directories(mytest PRIVATE include) target_link_libraries(mytest PRIVATE ${PROJECT_NAME} doctest nanobench simdjson) target_compile_options(mytest PRIVATE ${TEST_FLAGS}) -doctest_discover_tests(mytest) +doctest_discover_tests(mytest WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}) include(CMakePushCheckState) include(CheckCXXCompilerFlag)