Skip to content

Commit b488530

Browse files
authored
Merge pull request #589 from intjftw/db-connections
Reducing the number of db connections at runtime
2 parents 258e329 + 1eb5971 commit b488530

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

util/CMakeLists.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ include_directories(
66
include_directories(SYSTEM
77
${ODB_INCLUDE_DIRS})
88

9-
add_library(util STATIC
9+
add_library(util SHARED
1010
src/dbutil.cpp
1111
src/dynamiclibrary.cpp
1212
src/filesystem.cpp
@@ -17,13 +17,14 @@ add_library(util STATIC
1717
src/pipedprocess.cpp
1818
src/util.cpp)
1919

20-
target_compile_options(util PUBLIC -fPIC)
21-
2220
target_link_libraries(util
21+
gvc
2322
${Boost_LIBRARIES})
2423

2524
string(TOLOWER "${DATABASE}" _database)
2625
if (${_database} STREQUAL "sqlite")
2726
target_link_libraries(util
2827
sqlite3)
2928
endif()
29+
30+
install(TARGETS util DESTINATION ${INSTALL_LIB_DIR})

0 commit comments

Comments
 (0)