CMake Multiple line comments - Block Comment

Solution 1:

As of CMake 3.0 there is a special syntax for block comments which start with #[[ and ends with ]] at the end of block comment. See CMake documentation for further explanation. Some editors and IDEs do not support it yet.

Solution 2:

if(FALSE) # fake a block comment

endif()