diff --git a/contrib/devtools/build_cmake.sh b/contrib/devtools/build_cmake.sh --- a/contrib/devtools/build_cmake.sh +++ b/contrib/devtools/build_cmake.sh @@ -16,6 +16,7 @@ echo " --clang: build with clang/clang++" echo " --gcc: build with gcc/g++" echo " --junit: enable Junit reports generation" + echo " --no-build: Only run the configuration step and skip the build" echo " --Werror: add -Werror to the compiler flags" echo "Environment variables:" echo " CMAKE_FLAGS: array of the CMAKE flags to use for the build" @@ -32,6 +33,7 @@ read -a CMAKE_FLAGS <<< "${CMAKE_FLAGS}" +BUILD="yes" TARGETS=() while [[ $# -gt 0 ]]; do case $1 in @@ -55,6 +57,10 @@ ) shift ;; + --no-build) + BUILD="no" + shift + ;; --Werror) CMAKE_FLAGS+=( "-DCMAKE_C_FLAGS=-Werror" @@ -91,4 +97,7 @@ fi # Run build -ninja "${TARGETS[@]}" +if [ "${BUILD}" == "yes" ] +then + ninja "${TARGETS[@]}" +fi