Skip to content

Commit

Permalink
add pthread link for linux with sqlite
Browse files Browse the repository at this point in the history
  • Loading branch information
Krozark committed Mar 23, 2015
1 parent a40a40b commit b01b9b7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
9 changes: 6 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,16 @@ set_option(BUILD_SUPPORT_MYSQL FALSE BOOL "TRUE to build support for Mysql backe
set(DEFINES "")

if(BUILD_SUPPORT_SQLITE3)
#-lpthread
if(UNIX)
find_library(LIB_PTHREAD pthread)
set(LIBS ${LIBS} ${LIBS_PTHREAD})
endif()
set(DEFINES "${DEFINES} -DSQLITE_OMIT_LOAD_EXTENSION")
endif()

if(BUILD_SUPPORT_MYSQL)
find_library(MYSQL_LIB mysqlcppconn)
set(LIBS ${LIBS} ${MYSQL_LIB})
find_library(LIB_MYSQL mysqlcppconn)
set(LIBS ${LIBS} ${LIB_MYSQL})
endif()

set(WARNING "-Wall")
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ Requirement
* Mysql cppcon (if Mysql support is needed)
* doxygen (for user doc only)
* ~~lib Sqlite3~~ [included since v 0.4]
* pthread (for linux only) [v 0.4+]


TODO
Expand Down

0 comments on commit b01b9b7

Please sign in to comment.