eyalroz / tpch-dbgen

Data & query generation utilities for the TPC-H benchmark (unified repository)

Home Page:http://www.tpc.org/tpch/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pass CMake variables as compiler definitions using config.h.in

eyalroz opened this issue · comments

Instead of writing:

set_property(TARGET dbgen qgen APPEND PROPERTY COMPILE_DEFINITIONS ${DATABASE} ${WORKLOAD})

(and if-set-endif statements for conditional defines, like we would need for issue #26 ) - let's just use our cmake.h.in mechanism with #define @VARNAME_HERE@ and #cmakedefine directives.

Fixed by commit a621655.