diff --git a/common/build-style/cmake.sh b/common/build-style/cmake.sh index 2eb512ee390..5100a96dfd7 100644 --- a/common/build-style/cmake.sh +++ b/common/build-style/cmake.sh @@ -69,7 +69,7 @@ _EOF # Replace -isystem with -I if [ "$CMAKE_GENERATOR" = "Unix Makefiles" ]; then - find . -name flags.make -exec sed -i -e 's/-isystem/-I/g' + + find . -name flags.make -exec sed -i -e 's/-isystem/-I/g' "{}" + elif [ "$CMAKE_GENERATOR" = Ninja ]; then sed -i -e 's/-isystem/-I/g' build.ninja fi