[CMAKE] Prevent out-of-bound accesses in parser/lexer files

which try to remove path prefix from them.
This commit is contained in:
Hervé Poussineau 2019-04-06 23:35:37 +02:00
parent 15a828c86d
commit 09c4d0a74b
7 changed files with 26 additions and 0 deletions

View file

@ -17,6 +17,9 @@ list(APPEND SOURCE
vbscript_main.c
precomp.h)
# parser.tab.c has been generated with relative file paths...
set_source_files_properties(parser.tab.c PROPERTIES COMPILE_FLAGS "-UREACTOS_SOURCE_DIR -DREACTOS_SOURCE_DIR=\"\\\".\\\"\"")
list(APPEND vbscript_rc_deps
${CMAKE_CURRENT_SOURCE_DIR}/vbscript_classes.rgs
${CMAKE_CURRENT_SOURCE_DIR}/vbsglobal.rgs