diff --git a/CMakeLists.txt b/CMakeLists.txt index a5044161..129b8198 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -239,6 +239,8 @@ if (SQLITECPP_BUILD_EXAMPLES) if (NOT APPLE) target_link_libraries(SQLiteCpp_example1 dl) endif () + elseif (MSYS OR MINGW) + target_link_libraries(SQLiteCpp_example1 ssp) endif () else (SQLITECPP_BUILD_EXAMPLES) message(STATUS "SQLITECPP_BUILD_EXAMPLES OFF")