Skip to content

Commit

Permalink
passing through ODBC_CONFIG flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Hannes Mühleisen committed May 1, 2024
1 parent 0854887 commit b020f10
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,18 @@ ifeq ($(GEN),ninja)
FORCE_COLOR=-DFORCE_COLORED_OUTPUT=1
endif

ODBC_CONFIG_FLAG=
ifneq ($(ODBC_CONFIG),)
ODBC_CONFIG_FLAG=-DODBC_CONFIG=${ODBC_CONFIG}
endif

release:
mkdir -p build/release
cd build/release && cmake -DCMAKE_BUILD_TYPE=Release $(GENERATOR) ../.. && cmake --build . --config Release
cd build/release && cmake -DCMAKE_BUILD_TYPE=Release $(GENERATOR) $(ODBC_CONFIG_FLAG) ../.. && cmake --build . --config Release

debug:
mkdir -p build/debug
cd build/debug && cmake -DCMAKE_BUILD_TYPE=Debug $(GENERATOR) ../.. && cmake --build . --config Debug
cd build/debug && cmake -DCMAKE_BUILD_TYPE=Debug $(GENERATOR) $(ODBC_CONFIG_FLAG) ../.. && cmake --build . --config Debug


clean:
Expand Down

0 comments on commit b020f10

Please sign in to comment.