added include guards to cmake files
(should improve cmake performance slightly)
just added include guards to all cmake fiules in OpenFlipper/cmake folder
used the following script:
for file in .; do name=${file##*/};
base=${name%.cmake}; sed -i
'1s;^;if('"base"'_included)\nreturn()\nendif('"
base"'_included)\nset('"$base"'_included
true)\n;' ${name}; done
which adds:
if(filename_included)
return()
endif(filename_included)
set(filename_included true)
where filename is replaced by the actual file name