<font size=2 face="sans-serif">Is this the best way to generate a comment
bar, such as this:</font>
<br>
<br><font size=2 face="sans-serif">////////////////////////////////////////////////////////////////////////////////</font>
<br>
<br><font size=2 face="sans-serif">or this:</font>
<br>
<br><font size=2 face="sans-serif">--------------------------------------------------------------------------------</font>
<br>
<br><font size=2 face="sans-serif">or this:</font>
<br>
<br><font size=2 face="sans-serif">################################################################################</font>
<br>
<br><font size=2>IF(OUTPUT_FILE_EXT MATCHES "^\\.h|\\.cpp$")</font>
<br><font size=2> SET(COMMENT_CHARACTER "/")</font>
<br><font size=2>ELSEIF(OUTPUT_FILE_EXT MATCHES "^\\.sql$")</font>
<br><font size=2> SET(COMMENT_CHARACTER "-")</font>
<br><font size=2>ELSEIF(OUTPUT_FILE_EXT MATCHES "^\\.nsi|\\.nsh$")</font>
<br><font size=2> SET(COMMENT_CHARACTER "#")</font>
<br><font size=2>ELSE()</font>
<br><font size=2> MESSAGE(WARNING "Unknown file type")</font>
<br><font size=2>ENDIF()</font>
<br>
<br><font size=2>STRING(RANDOM LENGTH 80 ALPHABET "${COMMENT_CHARACTER}"
COMMENT_BAR)</font>
<br>
<br><font size=2 face="sans-serif">The only reason I ask is that is seems
weird to use the STRING(RANDOM function to get this done.</font>
<br><font size=2 face="sans-serif">-------------------------------------------------------------<br>
Aaron Wright</font>
<br>