mirror of
https://gitcode.com/gh_mirrors/es/esp32-opencv.git
synced 2025-08-06 18:24:38 +08:00
parsing the cmake output to get the list of opencv modules compiled
This commit is contained in:
@ -51,9 +51,11 @@ rm -rf build/ && mkdir -p build/ && cd build
|
||||
echo "================================================================================"
|
||||
echo "Configuring with cmake ${CMAKE_ARGS} :"
|
||||
echo "================================================================================"
|
||||
cmake $CMAKE_ARGS ..
|
||||
# launch cmake with args and parse list of modules to be build in a variable
|
||||
OPENCV_MODULES_LIST=`cmake $CMAKE_ARGS .. | tee /dev/tty | grep 'To be built' | cut -f2 -d ':' | xargs | tr ' ' ','`
|
||||
echo $OPENCV_MODULES_LIST
|
||||
read -p "Don't forget to check the cmake summary! Continue ? [y/N]" prompt
|
||||
if [ "${prompt}" != "y" ]; then
|
||||
if [ "${prompt}" != "y" ] && [ "${prompt}" != "Y" ] && [ "${prompt}" != "yes" ]; then
|
||||
echo "aborted."
|
||||
exit 1
|
||||
fi
|
||||
|
Reference in New Issue
Block a user