Skip to content

Commit

Permalink
[buildfix] Fix typo with `set_source_files_properties(file PROPERTIES…
Browse files Browse the repository at this point in the history
… COMPILE_DEFINITIONS` usage. `-D` removed. (#3380)
  • Loading branch information
Jarod42 authored Jun 1, 2024
1 parent e03611d commit 2b05d42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CxxParser/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ set(BisonSrcs
FLEX_TARGET(CppFlex "${CMAKE_SOURCE_DIR}/CxxParser/cpp.l" "${CMAKE_CURRENT_BINARY_DIR}/cpp.cpp"
COMPILE_FLAGS "-Pcl_scope_ --noline --yylineno --batch")
# Increase YY_BUF_SIZE from 16384 to 16384*5
set_source_files_properties("${FLEX_CppFlex_OUTPUTS}" PROPERTIES COMPILE_DEFINITIONS "-DYY_BUF_SIZE=(16384*5)")
set_source_files_properties("${FLEX_CppFlex_OUTPUTS}" PROPERTIES COMPILE_DEFINITIONS "YY_BUF_SIZE=(16384*5)")
FLEX_TARGET(ExprLexerFlex "${CMAKE_SOURCE_DIR}/CxxParser/expr_lexer.l" "${CMAKE_CURRENT_BINARY_DIR}/expr_lexer.cpp"
COMPILE_FLAGS "-Pcl_expr_ --noline --yylineno --batch")
# Increase YY_BUF_SIZE from 16384 to 16384*5
set_source_files_properties("${FLEX_ExprLexerFlex_OUTPUTS}" PROPERTIES COMPILE_DEFINITIONS "-DYY_BUF_SIZE=(16384*5)")
set_source_files_properties("${FLEX_ExprLexerFlex_OUTPUTS}" PROPERTIES COMPILE_DEFINITIONS "YY_BUF_SIZE=(16384*5)")

ADD_FLEX_BISON_DEPENDENCY(CppFlex CppScopeGrammarYacc)
ADD_FLEX_BISON_DEPENDENCY(ExprLexerFlex CppScopeGrammarYacc)
Expand Down

0 comments on commit 2b05d42

Please sign in to comment.