Is this the best way to generate a comment bar, such as this: ////////////////////////////////////////////////////////////////////////////////
or this: -------------------------------------------------------------------------------- or this: ################################################################################ IF(OUTPUT_FILE_EXT MATCHES "^\\.h|\\.cpp$") SET(COMMENT_CHARACTER "/") ELSEIF(OUTPUT_FILE_EXT MATCHES "^\\.sql$") SET(COMMENT_CHARACTER "-") ELSEIF(OUTPUT_FILE_EXT MATCHES "^\\.nsi|\\.nsh$") SET(COMMENT_CHARACTER "#") ELSE() MESSAGE(WARNING "Unknown file type") ENDIF() STRING(RANDOM LENGTH 80 ALPHABET "${COMMENT_CHARACTER}" COMMENT_BAR) The only reason I ask is that is seems weird to use the STRING(RANDOM function to get this done. ------------------------------------------------------------- Aaron Wright
_______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake