My cmake file looks like this. I want to uncomment the lines 1 through 100 with a single shortcut
#line1
#line2
#line3
.
.
.
#line100
build(a_library
USING
b
c)
My cmake file looks like this. I want to uncomment the lines 1 through 100 with a single shortcut
#line1
#line2
#line3
.
.
.
#line100
build(a_library
USING
b
c)
 
    
    if(FALSE) # fake a block comment
endif()
Note that this works well for commenting out a block of valid CMake code, it doesn't allow you write plain text within the if block
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.
