diff --git a/benchmark/checkperf.cmake b/benchmark/checkperf.cmake index 6a05e7bc..d1ae21b0 100644 --- a/benchmark/checkperf.cmake +++ b/benchmark/checkperf.cmake @@ -93,5 +93,9 @@ if (SIMDJSON_IS_UNDER_GIT AND Git_FOUND AND (GIT_VERSION_STRING VERSION_GREATER set_property(TEST checkperf APPEND PROPERTY DEPENDS parse perfdiff ${SIMDJSON_USER_CMAKECACHE}) set_property(TEST checkperf PROPERTY RUN_SERIAL TRUE) else() - message(STATUS "Either git is unavailable or else it is too old. We are disabling checkperf targets.") + if (CMAKE_GENERATOR MATCHES Ninja) + message(STATUS "We disable the checkperf targets under Ninja.") + else() + message(STATUS "Either git is unavailable or else it is too old. We are disabling checkperf targets.") + endif() endif ()