Separate out error messages if firebird include dir or lib dir cannot be found.
This commit is contained in:
parent
e245c4ecbe
commit
39c337536d
@ -115,6 +115,10 @@ find_path(FIREBIRD_INCLUDE_DIR ibase.h
|
|||||||
$ENV{ProgramFiles}/Firebird/*/include
|
$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)
|
set(FIREBIRD_LIB_NAMES fbclient fbclient_ms)
|
||||||
find_library(FIREBIRD_LIB_DIR
|
find_library(FIREBIRD_LIB_DIR
|
||||||
NAMES
|
NAMES
|
||||||
@ -126,7 +130,7 @@ find_library(FIREBIRD_LIB_DIR
|
|||||||
$ENV{ProgramFiles}/Firebird/*/lib
|
$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")
|
message(FATAL_ERROR "MyFirstUDRKit build: Location of Firebird library could not be found")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user