mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Search for soci before vendoring
This commit is contained in:
16
Builds/CMake/deps/Findsoci.cmake
Normal file
16
Builds/CMake/deps/Findsoci.cmake
Normal file
@@ -0,0 +1,16 @@
|
||||
find_package (PkgConfig REQUIRED)
|
||||
|
||||
# no soci pkgconfig
|
||||
#pkg_search_module (soci_PC QUIET libsoci_core>=3.2)
|
||||
|
||||
if(static)
|
||||
set(SOCI_LIB libsoci.a)
|
||||
else()
|
||||
set(SOCI_LIB libsoci_core.so)
|
||||
endif()
|
||||
|
||||
find_library (soci
|
||||
NAMES ${SOCI_LIB})
|
||||
|
||||
find_path (SOCI_INCLUDE_DIR
|
||||
NAMES soci/soci.h)
|
||||
Reference in New Issue
Block a user