[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:
Michał Małek 2018-11-15 09:30:30 +01:00
parent f1eb3aa4b9
commit 691ed09c3f

View File

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