mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-28 13:59:01 +08:00
[berkeleydb] fix exporting DLL symbols on Windows
Set preprocessor definitions correctly for static & shared library. Previously DLL was unusable on Windows - the symbols were not exported
This commit is contained in:
parent
f1eb3aa4b9
commit
691ed09c3f
@ -15,12 +15,12 @@ add_definitions(
|
||||
|
||||
if (BUILD_SHARED_LIBS)
|
||||
add_definitions(
|
||||
-D_LIB
|
||||
-DDB_CREATE_DLL
|
||||
-D_USRDLL
|
||||
)
|
||||
else()
|
||||
add_definitions(
|
||||
-DDB_CREATE_DLL
|
||||
-D_USRDLL
|
||||
-D_LIB
|
||||
)
|
||||
endif()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user