diff --git a/CMakeLists.txt b/CMakeLists.txt index 5173978..ec70de4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -67,10 +67,9 @@ GIT_SHALLOW TRUE SYSTEM ) -FetchContent_MakeAvailable(catch2) - ### Tests if(JSON_STRUCT_OPT_BUILD_TESTS) + FetchContent_MakeAvailable(catch2) enable_testing() add_subdirectory(tests) endif()