comment multiple lines in cmake at one go, something like #if 0 #endif
cmake, comments
Solution
In cmake, your `if` statement requires parentheses to operate, i.e.,
if(0)
Command1(arg1)
endif(0)
Also, `#if` does not work as a cmake statement.
Problem
This may be the issue with each script in Linux/Unix like OS Q Is there a way to comment multiple lines at one go ? Something like below which does NOT work ( and also does not throw any error) #if 0 INCLUDE(FindPkgConfig) ``` include_directories(/usr/local/include/gstreamer-0.10) include_directories(/usr/local/include/gstreamer-0.10/gst) include_directories(/usr/include/glib-2.0) include_directories(/usr/include/glib-2.0/glib) include_directories(/usr/include/glib-2.0/gobject) include_directories(/usr/lib/i386-linux-gnu/glib-2.0/include) include_directories(/usr/include/libxml2) ``` #endif We can obviously do it adding "#" at start of each line.