Merge pull request #434 Define SQLITECPP_COMPILE_DLL as PUBLIC from calumr/fix-dll-import

This commit is contained in:
Sébastien Rombauts 2023-08-17 10:50:10 +02:00 committed by GitHub
commit d8ac3b22d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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()