From 8cf3220cd0b1a9ae481330699a1b5e597f067cfc Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Wed, 9 Mar 2022 09:36:52 +0100 Subject: [PATCH] added status message --- CMakeLists.txt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e6c07ee5..dadf7234 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -150,9 +150,6 @@ set(FSFW_ADDITIONAL_INC_PATHS ${CMAKE_CURRENT_BINARY_DIR} ) -# Check whether the user has already installed Catch2 first -find_package(Catch2 3 QUIET) - ################################################################################ # Executable and Sources ################################################################################ @@ -199,8 +196,12 @@ elseif(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") set(COMPILER_FLAGS "/permissive-") endif() +# Check whether the user has already installed Catch2 first +find_package(Catch2 3 QUIET) + # Not installed, so use FetchContent to download and provide Catch2 if(NOT Catch2_FOUND) + message(STATUS "Did not find a valid Catch2 installation. Using FetchContent to install it") include(FetchContent) FetchContent_Declare(