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)
|
set(FIREBIRD_LIB_NAMES fbclient fbclient_ms)
|
||||||
find_library(FIREBIRD_LIB
|
find_library(FIREBIRD_LIB_DIR
|
||||||
NAMES
|
NAMES
|
||||||
${FIREBIRD_LIB_NAMES}
|
${FIREBIRD_LIB_NAMES}
|
||||||
PATHS
|
PATHS
|
||||||
@ -126,26 +126,26 @@ find_library(FIREBIRD_LIB
|
|||||||
$ENV{ProgramFiles}/Firebird/*/lib
|
$ENV{ProgramFiles}/Firebird/*/lib
|
||||||
)
|
)
|
||||||
|
|
||||||
if(NOT FIREBIRD_INCLUDE_DIR OR NOT FIREBIRD_LIB)
|
if(NOT FIREBIRD_INCLUDE_DIR OR NOT FIREBIRD_LIB_DIR)
|
||||||
message(FATAL_ERROR "MyFirstUDRKit build: Location of Firebird library could not found")
|
message(FATAL_ERROR "MyFirstUDRKit build: Location of Firebird library could not be found")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_library(firebird SHARED IMPORTED)
|
add_library(firebird SHARED IMPORTED)
|
||||||
if(UNIX)
|
if(UNIX)
|
||||||
set_target_properties(firebird
|
set_target_properties(firebird
|
||||||
PROPERTIES
|
PROPERTIES
|
||||||
IMPORTED_LOCATION ${FIREBIRD_LIB}
|
IMPORTED_LOCATION ${FIREBIRD_LIB_DIR}
|
||||||
INTERFACE_INCLUDE_DIRECTORIES "${FIREBIRD_INCLUDE_DIR};${FIREBIRD_INCLUDE_DIR}/firebird"
|
INTERFACE_INCLUDE_DIRECTORIES "${FIREBIRD_INCLUDE_DIR};${FIREBIRD_INCLUDE_DIR}/firebird"
|
||||||
)
|
)
|
||||||
else()
|
else()
|
||||||
set_target_properties(firebird
|
set_target_properties(firebird
|
||||||
PROPERTIES
|
PROPERTIES
|
||||||
IMPORTED_IMPLIB ${FIREBIRD_LIB}
|
IMPORTED_IMPLIB ${FIREBIRD_LIB_DIR}
|
||||||
INTERFACE_INCLUDE_DIRECTORIES "${FIREBIRD_INCLUDE_DIR};${FIREBIRD_INCLUDE_DIR}/firebird"
|
INTERFACE_INCLUDE_DIRECTORIES "${FIREBIRD_INCLUDE_DIR};${FIREBIRD_INCLUDE_DIR}/firebird"
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
message(STATUS "MyFirstUDRKit link: firebird - ${FIREBIRD_LIB}")
|
message(STATUS "MyFirstUDRKit link: firebird - ${FIREBIRD_LIB_DIR}")
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# Target library
|
# Target library
|
||||||
|
Loading…
Reference in New Issue
Block a user