diff --git a/Makefile b/Makefile index df32f36..37d2421 100644 --- a/Makefile +++ b/Makefile @@ -238,11 +238,12 @@ conan-clean: ## Clean Conan cache and build folders fname = "tests/data/iris.arff" model = "TANLd" +build_type = "Debug" sample: ## Build sample with Conan @echo ">>> Building Sample with Conan..."; @if [ -d ./sample/build ]; then rm -rf ./sample/build; fi - @cd sample && conan install . --output-folder=build --build=missing - @cd sample && cmake -B build -S . -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=build/conan_toolchain.cmake && \ + @cd sample && conan install . --output-folder=build --build=missing -s build_type=$(build_type) -o "&:enable_coverage=False" -o "&:enable_testing=False" + @cd sample && cmake -B build -S . -DCMAKE_BUILD_TYPE=$(build_type) -DCMAKE_TOOLCHAIN_FILE=build/conan_toolchain.cmake && \ cmake --build build -t bayesnet_sample sample/build/bayesnet_sample $(fname) $(model) @echo ">>> Done";