diff --git a/systemtests/CMakeLists.txt b/systemtests/CMakeLists.txt index 20f3196efbd..a91fcb63638 100644 --- a/systemtests/CMakeLists.txt +++ b/systemtests/CMakeLists.txt @@ -184,17 +184,19 @@ else() set(TEST_INFO_TEXT "running system tests on the sourcetree") endif() -execute_process( - COMMAND "${CMAKE_BINARY_DIR}/systemtests/scripts/generate_minio_certs.sh" - WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/systemtests/tls/minio/" - RESULT_VARIABLE RESULT_GENERATE_MINIO_CERTS - OUTPUT_QUIET ERROR_QUIET -) -if(NOT "${RESULT_GENERATE_MINIO_CERTS}" STREQUAL "0") - message( - FATAL_ERROR - "Creation of certificates failed: ${RESULT_GENERATE_MINIO_CERTS} ${CMAKE_BINARY_DIR}" +if(MINIO) + execute_process( + COMMAND "${CMAKE_BINARY_DIR}/systemtests/scripts/generate_minio_certs.sh" + WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/systemtests/tls/minio/" + RESULT_VARIABLE RESULT_GENERATE_MINIO_CERTS + OUTPUT_QUIET ERROR_QUIET ) + if(NOT "${RESULT_GENERATE_MINIO_CERTS}" STREQUAL "0") + message( + FATAL_ERROR + "Creation of certificates failed: ${RESULT_GENERATE_MINIO_CERTS} ${CMAKE_BINARY_DIR}" + ) + endif() endif() configure_file(