CMake Multiple line comments - Block Comment

cmake

Solution

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.

You can also put a number of equal signs between the brackets as long as the number between the opening `[[` and closing `]]` are both the same. Ex.

#[===[
hello
]] <- this is not the closing
]===]
# ^ this is the closing

Some editors and IDEs do not support it yet.

Problem

Is there any way to comment a block in CMake in notepad++ editor? I have tried searching on Google, but couldn't find much. Help is needed! Thanks,

Original source