From bfce242334787eeeb6cdabf2b6c3a0da7db5ba70 Mon Sep 17 00:00:00 2001 From: John Zhao Date: Wed, 16 Jan 2019 20:03:52 +0800 Subject: [PATCH 1/2] fix(option.cmake): find boost quiet --- cmake/Option.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/Option.cmake b/cmake/Option.cmake index 00fc825..9349320 100644 --- a/cmake/Option.cmake +++ b/cmake/Option.cmake @@ -44,7 +44,7 @@ else() endif() if(WITH_BOOST) - find_package(Boost COMPONENTS filesystem) + find_package(Boost QUIET COMPONENTS filesystem) if(Boost_FOUND) set(Boost_VERSION_STRING "${Boost_MAJOR_VERSION}.${Boost_MINOR_VERSION}.${Boost_SUBMINOR_VERSION}") set(WITH_FILESYSTEM TRUE) From 637d08984d57c633511077b8943b3bb62af1e9be Mon Sep 17 00:00:00 2001 From: John Zhao Date: Wed, 16 Jan 2019 20:04:33 +0800 Subject: [PATCH 2/2] build(makefile): do small change --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 5e47797..9e23713 100644 --- a/Makefile +++ b/Makefile @@ -27,7 +27,7 @@ MKFILE_DIR := $(patsubst %/,%,$(dir $(MKFILE_PATH))) # SUDO: sudo command # CAM_MODELS: cmake build with -DWITH_CAM_MODELS=ON # -# e.g. make [TARGET] SUOD= +# e.g. make [TARGET] SUDO= # e.g. make [TARGET] CAM_MODELS=1 SUDO ?= sudo @@ -35,7 +35,9 @@ SUDO ?= sudo CAM_MODELS ?= CMAKE_BUILD_EXTRA_OPTIONS := -ifneq ($(CAM_MODELS),) +ifeq ($(CAM_MODELS),) + CMAKE_BUILD_EXTRA_OPTIONS := $(CMAKE_BUILD_EXTRA_OPTIONS) -DWITH_CAM_MODELS=OFF +else CMAKE_BUILD_EXTRA_OPTIONS := $(CMAKE_BUILD_EXTRA_OPTIONS) -DWITH_CAM_MODELS=ON endif