cmark

My personal build of CMark ✏️

Commit
93ca61996ec714e95fa7c53f71719f1910e3bee3
Parent
0ba527775f8ea5371d7383d9118153fcb7a67bc3
Author
John MacFarlane <jgm@berkeley.edu>
Date

Changed build procedure so that an empty scanners.c is not created

if `re2c` is missing.

Closes #231.

Diffstat

1 file changed, 6 insertions, 2 deletions

Status File Name N° Changes Insertions Deletions
Modified src/CMakeLists.txt 8 6 2
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
@@ -47,11 +47,15 @@ if (MSVC)
     file(TO_NATIVE_PATH ${CMAKE_CURRENT_SOURCE_DIR} DOS_CURRENT_SOURCE_DIR)
     add_custom_command( OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/scanners.c
                         DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/scanners.re
-                        COMMAND ${RE2C} --case-insensitive -b -i ${DOS_CURRENT_SOURCE_DIR}\\scanners.re >${DOS_CURRENT_SOURCE_DIR}\\scanners.c)
+                        COMMAND ${RE2C} --case-insensitive -b -i
+                        -o ${DOS_CURRENT_SOURCE_DIR}\\scanners.c
+                        ${DOS_CURRENT_SOURCE_DIR}\\scanners.re )
 else(MSVC)
     add_custom_command( OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/scanners.c
                         DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/scanners.re
-                        COMMAND ${RE2C} --case-insensitive -b -i ${CMAKE_CURRENT_SOURCE_DIR}/scanners.re >${CMAKE_CURRENT_SOURCE_DIR}/scanners.c)
+                        COMMAND ${RE2C} --case-insensitive -b -i
+                        -o ${CMAKE_CURRENT_SOURCE_DIR}/scanners.c
+                        ${CMAKE_CURRENT_SOURCE_DIR}/scanners.re )
 endif(MSVC)
 
 include (GenerateExportHeader)