Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CMake Multiple line comments - Block Comment

Tags:

cmake

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,

like image 869
thestar Avatar asked Dec 27 '13 16:12

thestar


2 Answers

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.

like image 89
Amani Avatar answered Oct 13 '22 05:10

Amani


if(FALSE) # fake a block comment  endif() 
like image 41
Urkle Avatar answered Oct 13 '22 05:10

Urkle