File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,9 @@ message (STATUS "Project version: ${PROJECT_VERSION}")
2222
2323option (SQLITECPP_BUILD_TESTS "Build and run tests." OFF )
2424
25+ # BUILD_SHARED_LIBS is a standard CMake variable, but we declare it here to make it prominent
26+ option (BUILD_SHARED_LIBS "Build shared libraries (DLLs)." OFF )
27+
2528# Define useful variables to handle OS differences:
2629if (WIN32 )
2730 set (DEV_NULL "NUL" )
@@ -230,8 +233,9 @@ if (SQLITE_USE_LEGACY_STRUCT)
230233 target_compile_definitions (SQLiteCpp PUBLIC SQLITE_USE_LEGACY_STRUCT)
231234endif (SQLITE_USE_LEGACY_STRUCT)
232235
233- if (BUILD_SHARED_LIBS )
234- if (WIN32 )
236+ if (BUILD_SHARED_LIBS )
237+ if (WIN32 )
238+ message (STATUS "Build shared libraries (DLLs)." )
235239 target_compile_definitions (SQLiteCpp PUBLIC "SQLITECPP_COMPILE_DLL" )
236240 target_compile_definitions (SQLiteCpp PRIVATE "SQLITECPP_DLL_EXPORT" )
237241 endif ()
Original file line number Diff line number Diff line change @@ -11,8 +11,8 @@ add_library(sqlite3
1111 sqlite3.h
1212)
1313
14- if (WIN32 )
15- if (BUILD_SHARED_LIBS )
14+ if (WIN32 )
15+ if (BUILD_SHARED_LIBS )
1616 add_definitions ("-DSQLITE_API=__declspec(dllexport)" )
1717 endif ()
1818endif ()
You can’t perform that action at this time.
0 commit comments