Skip to content
This repository has been archived by the owner on Nov 16, 2022. It is now read-only.

Commit

Permalink
Merge pull request #1 from yifu/master
Browse files Browse the repository at this point in the history
Fix an issue occuring with commented cmake rules.
  • Loading branch information
seanfisk committed May 2, 2013
2 parents 19d1b2a + fc6fc18 commit 05a99dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake-flymake-generate
Expand Up @@ -58,7 +58,7 @@ find . -name CMakeLists.txt -print0 | while read -r -d $'\0' cmakelists_path; do
# parse out the executables and include their `flags.make' files in our Makefile
shopt -s nocasematch
while read -r line; do
if [[ $line =~ add_executable\(([[:alnum:][:punct:]]+) ]]; then
if [[ $line =~ ^add_executable\(([[:alnum:][:punct:]]+) ]]; then
executable_name=${BASH_REMATCH[1]}
flags_make_file=$(readlink --canonicalize "$PWD/$build_dir_name/$rel_makefile_dir/CMakeFiles/$executable_name.dir/flags.make")
echo "include $flags_make_file" >> $makefile_path
Expand All @@ -73,4 +73,4 @@ check-syntax:
\${CXX} -o /dev/null \${CXX_FLAGS} \${CXX_DEFINES} -S \${CHK_SOURCES}
EOF
) >> $makefile_path
done
done

0 comments on commit 05a99dd

Please sign in to comment.