whitespace
This commit is contained in:
parent
0f71e0abdc
commit
e600850c3d
@ -116,7 +116,7 @@ find_path(FIREBIRD_INCLUDE_DIR ibase.h
|
||||
)
|
||||
|
||||
set(FIREBIRD_LIB_NAMES fbclient fbclient_ms)
|
||||
find_library(FIREBIRD_LIB
|
||||
find_library(FIREBIRD_LIB_DIR
|
||||
NAMES
|
||||
${FIREBIRD_LIB_NAMES}
|
||||
PATHS
|
||||
@ -126,26 +126,26 @@ find_library(FIREBIRD_LIB
|
||||
$ENV{ProgramFiles}/Firebird/*/lib
|
||||
)
|
||||
|
||||
if(NOT FIREBIRD_INCLUDE_DIR OR NOT FIREBIRD_LIB)
|
||||
message(FATAL_ERROR "MyFirstUDRKit build: Location of Firebird library could not found")
|
||||
if(NOT FIREBIRD_INCLUDE_DIR OR NOT FIREBIRD_LIB_DIR)
|
||||
message(FATAL_ERROR "MyFirstUDRKit build: Location of Firebird library could not be found")
|
||||
endif()
|
||||
|
||||
add_library(firebird SHARED IMPORTED)
|
||||
if(UNIX)
|
||||
set_target_properties(firebird
|
||||
PROPERTIES
|
||||
IMPORTED_LOCATION ${FIREBIRD_LIB}
|
||||
IMPORTED_LOCATION ${FIREBIRD_LIB_DIR}
|
||||
INTERFACE_INCLUDE_DIRECTORIES "${FIREBIRD_INCLUDE_DIR};${FIREBIRD_INCLUDE_DIR}/firebird"
|
||||
)
|
||||
else()
|
||||
set_target_properties(firebird
|
||||
PROPERTIES
|
||||
IMPORTED_IMPLIB ${FIREBIRD_LIB}
|
||||
IMPORTED_IMPLIB ${FIREBIRD_LIB_DIR}
|
||||
INTERFACE_INCLUDE_DIRECTORIES "${FIREBIRD_INCLUDE_DIR};${FIREBIRD_INCLUDE_DIR}/firebird"
|
||||
)
|
||||
endif()
|
||||
|
||||
message(STATUS "MyFirstUDRKit link: firebird - ${FIREBIRD_LIB}")
|
||||
message(STATUS "MyFirstUDRKit link: firebird - ${FIREBIRD_LIB_DIR}")
|
||||
|
||||
###############################################################################
|
||||
# Target library
|
||||
|
Loading…
Reference in New Issue
Block a user