mirror of
https://gitee.com/openharmony/third_party_libsnd
synced 2024-11-26 19:40:24 +00:00
Scripts/cmake-build.sh: Build out of tree
By default CMake dumps all the build artifact in the root directory of the project. The script now builds everything in `_Build`.
This commit is contained in:
parent
7c402ad94b
commit
e6474576e5
@ -1,9 +1,9 @@
|
||||
#!/bin/bash -e
|
||||
#!/bin/bash -eu
|
||||
|
||||
rm -rf CMakeCache.txt CMakeFiles/
|
||||
rm -rf CMakeCache.txt CMakeFiles/ _Build
|
||||
|
||||
cmake -DWerror=on -Werror=dev -Werror=deprecated .
|
||||
|
||||
make clean
|
||||
make
|
||||
make check
|
||||
mkdir _Build
|
||||
cd _Build
|
||||
cmake ..
|
||||
cmake --build .
|
||||
ctest -V
|
||||
|
Loading…
Reference in New Issue
Block a user