- Commit
- c69654ce136fa6e7c097f9458ea999e66d6340bc
- Parent
- 627326bed4e58cf457e8c8f2c45b2e6d7c316a54
- Author
- Nick Wellnhofer <wellnhofer@aevum.de>
- Date
Look for re2c in path when compiling with MSVC
My personal build of CMark ✏️
Look for re2c in path when compiling with MSVC
1 file changed, 1 insertion, 2 deletions
Status | File Name | N° Changes | Insertions | Deletions |
Modified | src/CMakeLists.txt | 3 | 1 | 2 |
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt @@ -40,14 +40,13 @@ set(PROGRAM_SOURCES include_directories(. html ${CMAKE_CURRENT_BINARY_DIR}) +set(RE2C re2c) if (MSVC) - set(RE2C ${CMAKE_CURRENT_SOURCE_DIR}/re2c) 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) else(MSVC) - set(RE2C re2c) 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)