mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-30 17:59:21 +00:00
link to soci libs only if found
This commit is contained in:
parent
af8cbd6957
commit
12ad35401c
2 changed files with 8 additions and 2 deletions
|
|
@ -158,7 +158,6 @@ set(LIBS
|
|||
${ORTP_LIBRARIES}
|
||||
${XML2_LIBRARIES}
|
||||
${BELR_LIBRARIES}
|
||||
${SOCI_LIBRARIES}
|
||||
)
|
||||
if(WIN32 AND NOT CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
|
||||
list(APPEND LIBS "Ws2_32")
|
||||
|
|
@ -169,6 +168,9 @@ endif()
|
|||
if(ZLIB_FOUND)
|
||||
list(APPEND LIBS ${ZLIB_LIBRARIES})
|
||||
endif()
|
||||
if(SOCI_FOUND)
|
||||
list(APPEND LIBS ${SOCI_LIBRARIES})
|
||||
endif()
|
||||
if(SQLITE3_FOUND)
|
||||
list(APPEND LIBS ${SQLITE3_LIBRARIES})
|
||||
endif()
|
||||
|
|
|
|||
|
|
@ -53,7 +53,11 @@ set(LINPHONE_CXX_OBJECTS_SOURCE_FILES
|
|||
)
|
||||
|
||||
set(LINPHONE_CXX_OBJECTS_DEFINITIONS "-DLIBLINPHONE_EXPORTS")
|
||||
set(LINPHONE_CXX_OBJECTS_INCLUDE_DIRS ${BELR_INCLUDE_DIRS} ${SOCI_INCLUDE_DIRS} ${SOCI_MYSQL_INCLUDES})
|
||||
set(LINPHONE_CXX_OBJECTS_INCLUDE_DIRS ${BELR_INCLUDE_DIRS})
|
||||
|
||||
if(SOCI_FOUND)
|
||||
list(APPEND LINPHONE_CXX_OBJECTS_INCLUDE_DIRS ${SOCI_INCLUDE_DIRS} ${SOCI_MYSQL_INCLUDES})
|
||||
endif()
|
||||
|
||||
set(LINPHONE_PRIVATE_HEADER_FILES)
|
||||
foreach(header ${LINPHONE_CXX_OBJECTS_PRIVATE_HEADER_FILES})
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue