cmark

Unnamed repository; edit this file 'description' to name the repository.

commit 93ca61996ec714e95fa7c53f71719f1910e3bee3
parent 0ba527775f8ea5371d7383d9118153fcb7a67bc3
Author: John MacFarlane <jgm@berkeley.edu>
Date:   Mon,  1 Dec 2014 20:02:14 -0800

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

if `re2c` is missing.

Closes #231.

Diffstat:
Msrc/CMakeLists.txt | 8++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
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)