Prevent CMake from expanding comments

Unfortunately CMake doesn't check for comments and expands the
example syntax! Is this a CMake bug? Anyway, this is fixed now.
This commit is contained in:
Albrecht Schlosser 2021-07-08 14:30:13 +02:00
parent 5cca79489b
commit 26c46cc022
2 changed files with 8 additions and 8 deletions

View File

@ -20,11 +20,11 @@
*
* configh.in configh.cmake.in
* --------------------- ----------------------------
* #define HAVE_GL 0 #cmakedefine01 HAVE_GL
* #undef HAVE_SNPRINTF #cmakedefine HAVE_SNPRINTF 1
* [#]define HAVE_GL 0 [#]cmakedefine01 HAVE_GL
* [#]undef HAVE_SNPRINTF [#]cmakedefine HAVE_SNPRINTF 1
*
* The former #define's the given macro either as 0 or 1,
* the latter either does not define the macro or #define's it as 1.
* The former defines the given macro either as 0 or 1,
* the latter either does not define the macro or defines it as 1.
*/
/*

View File

@ -19,11 +19,11 @@
*
* configh.in configh.cmake.in
* --------------------- ----------------------------
* #define HAVE_GL 0 #cmakedefine01 HAVE_GL
* #undef HAVE_SNPRINTF #cmakedefine HAVE_SNPRINTF 1
* [#]define HAVE_GL 0 [#]cmakedefine01 HAVE_GL
* [#]undef HAVE_SNPRINTF [#]cmakedefine HAVE_SNPRINTF 1
*
* The former #define's the given macro either as 0 or 1,
* the latter either does not define the macro or #define's it as 1.
* The former defines the given macro either as 0 or 1,
* the latter either does not define the macro or defines it as 1.
*/
/*