From 29e744fdbb94d5e977f415d0a219c5afb05a1397 Mon Sep 17 00:00:00 2001 From: Daniel Lemire Date: Wed, 24 Jun 2020 19:23:02 -0400 Subject: [PATCH] Adding warning message. --- benchmark/checkperf.cmake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 ()