Skip to content

Commit

Permalink
Define SQLITECPP_COMPILE_DLL as PUBLIC
Browse files Browse the repository at this point in the history
* So that users of the SQLiteCpp lib have it defined automatically
* Fixed #432
  • Loading branch information
calumr committed Jul 14, 2023
1 parent 164a606 commit 24a24b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 24a24b3

Please sign in to comment.