File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -60,16 +60,17 @@ $(_build_path)/CMakeCache.txt: | $(_build_path) .gitmodules
60
60
ln -s $(_build_path ) /compile_commands.json
61
61
62
62
compile : $(_build_path ) /CMakeCache.txt # # Compile the project
63
+ cmake $(CMAKE_FLAGS ) -DCMAKE_TOOLCHAIN_FILE=etc/$(TOOLCHAIN ) -toolchain.cmake -B $(_build_path ) -S .
63
64
cmake --build $(_build_path ) --config $(CONFIG ) --target all -- -k 0
64
65
65
66
install : $(_build_path ) /CMakeCache.txt # # Install the project
66
67
DESTDIR=$(abspath $(DEST ) ) ninja -C $(_build_path ) -k 0 install
67
68
68
69
ctest : $(_build_path ) /CMakeCache.txt # # Run CTest on current build
69
- cd $( _build_path ) && ctest --output-on-failure
70
+ ctest --build-config $( CONFIG ) --output-on-failure --test-dir $( _build_path )
70
71
71
72
ctest_ : compile
72
- cd $( _build_path ) && ctest --output-on-failure
73
+ ctest --build-config $( CONFIG ) --output-on-failure --test-dir $( _build_path )
73
74
74
75
test : ctest_ # # Rebuild and run tests
75
76
You can’t perform that action at this time.
0 commit comments