Define SQLITECPP_COMPILE_DLL as PUBLIC

* So that users of the SQLiteCpp lib have it defined automatically
* Fixed #432
This commit is contained in:
Calum Robinson 2023-07-14 14:17:12 +01:00
parent 164a606004
commit 24a24b3be9

View File

@ -215,7 +215,7 @@ endif (SQLITE_USE_LEGACY_STRUCT)
if(BUILD_SHARED_LIBS)
if(WIN32)
add_definitions("-DSQLITECPP_COMPILE_DLL")
target_compile_definitions(SQLiteCpp PUBLIC "SQLITECPP_COMPILE_DLL")
target_compile_definitions(SQLiteCpp PRIVATE "SQLITECPP_DLL_EXPORT")
endif()
endif()