Skip to content
Snippets Groups Projects
Commit ca7b280f authored by Joscha Schmiedt's avatar Joscha Schmiedt
Browse files

FIX: Makefile for CMake<3.23 (does not support presets)

parent 2be4e662
No related branches found
No related tags found
2 merge requests!41Release 0.3.0,!35Adapt for Conan 2
Pipeline #53737 passed
......@@ -56,10 +56,17 @@ format:
.PHONY: format
build-debug: conan-install-debug
cmake --preset conan-debug && cmake --build build/Debug
# cmake --preset conan-debug && cmake --build build/Debug # for CMake >= 3.23
cd build/Debug &&\
cmake -S ../.. -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE=generators/conan_toolchain.cmake -DCMAKE_POLICY_DEFAULT_CMP0091=NEW -DCMAKE_BUILD_TYPE=Debug &&\
cmake --build .
build-release: conan-install-release
cmake --preset conan-release && cmake --build build/Release
# cmake --preset conan-release # for CMake >= 3.23
cd build/Release &&\
cmake -S ../.. -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE=generators/conan_toolchain.cmake -DCMAKE_POLICY_DEFAULT_CMP0091=NEW -DCMAKE_BUILD_TYPE=Release &&\
cmake --build .
test-debug: build-debug
cd build/Debug && ctest
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment