Skip to content
Snippets Groups Projects
Commit 0371796f authored by Andreas Schenk's avatar Andreas Schenk
Browse files

fixed out of source compile for db module on windows

parent ece8e377
Branches
Tags
No related merge requests found
......@@ -13,8 +13,8 @@ sqlite3.c
module(NAME db SOURCES ${OST_DB_SOURCES} HEADERS ${OST_DB_HEADERS}
DEPENDS_ON ost_base)
if(WIN32)
set_target_properties(ost_db PROPERTIES LINK_FLAGS "/DEF:sqlite3.def")
set_target_properties(ost_db PROPERTIES LINK_FLAGS "/DEF:${CMAKE_CURRENT_SOURCE_DIR}/sqlite3.def")
add_definitions(/DSQLITE_ENABLE_COLUMN_METADATA)
else(WIN32)
add_definitions(-DSQLITE_OMIT_LOAD_EXTENSION)
add_definitions(-DSQLITE_OMIT_LOAD_EXTENSION)
endif(WIN32)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment