Skip to content

Commit bb946df

Browse files
author
Sébastien Rombauts
committed
Use latest SQLiteCpp wrapper: needs to link explicitly to sqlite3 (again)
1 parent a8c7618 commit bb946df

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ add_executable(SQLiteCpp_Example ${SOURCE_FILES})
1111
# Link SQLiteCpp_example1 with SQLiteCpp and sqlite3 (and also pthread and dl for linux)
1212
if(UNIX AND NOT APPLE)
1313
# Linux
14-
target_link_libraries(SQLiteCpp_Example SQLiteCpp pthread dl)
14+
target_link_libraries(SQLiteCpp_Example SQLiteCpp sqlite3 pthread dl)
1515
else(UNIX AND APPLE)
1616
# Mac OS
17-
target_link_libraries(SQLiteCpp_Example SQLiteCpp pthread)
17+
target_link_libraries(SQLiteCpp_Example SQLiteCpp sqlite3 pthread)
1818
else()
1919
# Windows
20-
target_link_libraries(SQLiteCpp_Example SQLiteCpp)
20+
target_link_libraries(SQLiteCpp_Example SQLiteCpp sqlite3)
2121
endif()

0 commit comments

Comments
 (0)