From 39c337536dfac7633b0185a770271f1f7f489216 Mon Sep 17 00:00:00 2001 From: Paul Reeves Date: Wed, 25 Jan 2023 11:39:36 +0100 Subject: [PATCH] Separate out error messages if firebird include dir or lib dir cannot be found. --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 28cbdb8..c9c48c9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -115,6 +115,10 @@ find_path(FIREBIRD_INCLUDE_DIR ibase.h $ENV{ProgramFiles}/Firebird/*/include ) +if(NOT FIREBIRD_INCLUDE_DIR ) + message(FATAL_ERROR "MyFirstUDRKit build: Location of Firebird include files could not be found") +endif() + set(FIREBIRD_LIB_NAMES fbclient fbclient_ms) find_library(FIREBIRD_LIB_DIR NAMES @@ -126,7 +130,7 @@ find_library(FIREBIRD_LIB_DIR $ENV{ProgramFiles}/Firebird/*/lib ) -if(NOT FIREBIRD_INCLUDE_DIR OR NOT FIREBIRD_LIB_DIR) +if( NOT FIREBIRD_LIB_DIR) message(FATAL_ERROR "MyFirstUDRKit build: Location of Firebird library could not be found") endif()