FLTK logo

[master] 26c46cc - Prevent CMake from expanding comments

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.commit  ]
 
Previous Message ]Next Message ]

[master] 26c46cc - Prevent CMake from expanding comments "Albrecht Schlosser" Jul 08, 2021  
 
commit 26c46cc022fb097b76d394f482afe231871c2fc2
Author:     Albrecht Schlosser <albrechts.fltk@online.de>
AuthorDate: Thu Jul 8 14:30:13 2021 +0200
Commit:     Albrecht Schlosser <albrechts.fltk@online.de>
CommitDate: Thu Jul 8 14:30:13 2021 +0200

    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.

 configh.cmake.in | 8 ++++----
 configh.in       | 8 ++++----
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git configh.cmake.in configh.cmake.in
index 9195c2b..9bb7231 100644
--- configh.cmake.in
+++ configh.cmake.in
@@ -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.
  */
 
 /*
diff --git configh.in configh.in
index f43d241..46121b2 100644
--- configh.in
+++ configh.in
@@ -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.
  */
 
 /*
Direct Link to Message ]
 
     
Previous Message ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.