aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Makefile
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-04-07 00:45:40 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-04-07 01:06:33 +0300
commite10b7946da60677ddc54da7e75a7282c006f9a70 (patch)
tree8b1c505cbe7d6e954ea9dace556b410f4ce6e55e /Makefile
parentcmake: slight CMakeLists.txt refactoring (diff)
downloadmath-server-e10b7946da60677ddc54da7e75a7282c006f9a70.tar.gz
math-server-e10b7946da60677ddc54da7e75a7282c006f9a70.zip
Makefile: allow to override MATH_SERVER_TESTS
Diffstat (limited to '')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index cd46caa..53d328b 100644
--- a/Makefile
+++ b/Makefile
@@ -31,7 +31,7 @@ TOOLSET ?= auto
CONFIGURATION ?= Debug
BOOST_VERSION ?= 1.72.0
BOOST_LIBRARIES := --with-filesystem --with-program_options --with-regex --with-test
-CMAKE_FLAGS ?=
+CMAKE_FLAGS ?= -D MATH_SERVER_TESTS=ON
this_dir := $(dir $(realpath $(firstword $(MAKEFILE_LIST))))
src_dir := $(this_dir)
@@ -84,9 +84,9 @@ endif
.PHONY: build
build:
ifdef CI
- cd cmake && python3 -m project.ci.cmake --install -- -D MATH_SERVER_TESTS=ON $(CMAKE_FLAGS)
+ cd cmake && python3 -m project.ci.cmake --install -- $(CMAKE_FLAGS)
else
- cd cmake && python3 -m project.cmake.build --toolset '$(call escape,$(TOOLSET))' --configuration '$(call escape,$(CONFIGURATION))' --build '$(call escape,$(cmake_dir))' --install '$(call escape,$(DESTDIR))' --boost '$(call escape,$(boost_dir))' -- '$(call escape,$(src_dir))' -D MATH_SERVER_TESTS=ON $(CMAKE_FLAGS)
+ cd cmake && python3 -m project.cmake.build --toolset '$(call escape,$(TOOLSET))' --configuration '$(call escape,$(CONFIGURATION))' --build '$(call escape,$(cmake_dir))' --install '$(call escape,$(DESTDIR))' --boost '$(call escape,$(boost_dir))' -- '$(call escape,$(src_dir))' $(CMAKE_FLAGS)
endif
.PHONY: install