OdbCmake icon indicating copy to clipboard operation
OdbCmake copied to clipboard

failed to build under Ubuntu 22.04

Open simonstek opened this issue 1 year ago • 1 comments

failed to build under Ubuntu 22.04

simonstek avatar Aug 22 '23 03:08 simonstek

You must add GENERATE_SCHEMA after GENERATE_QUERY in odb_compile within CMakeLists.txt

odb_compile(
  OdbCMake_SOURCES
  FILES
  ${OdbCMake_ODB_HEADERS}
  DB
  sqlite
  GENERATE_QUERY
  GENERATE_SCHEMA
  GENERATE_SESSION)

traxyax avatar Oct 31 '23 03:10 traxyax