Skip to content

Commit

Permalink
Small update and cmake summary
Browse files Browse the repository at this point in the history
  • Loading branch information
Yaraslaut committed Dec 17, 2023
1 parent ec21a93 commit 5222a9e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 8 deletions.
24 changes: 17 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,16 @@ set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)


option(ENDO_TRACE "Enables debug output" ON)
option(ENDO_TRACE_PARSER "Enables debug output for Parser" ON)
option(ENDO_TRACE_LEXER "Enables debug output for Lexer" ON)
option(ENDO_TRACE "Enables debug output" OFF)
option(ENDO_TRACE_PARSER "Enables debug output for Parser" OFF)
option(ENDO_TRACE_LEXER "Enables debug output for Lexer" OFF)

if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug")
set(ENDO_TRACE ON)
set(ENDO_TRACE_PARSER ON)
set(ENDO_TRACE_LEXER ON)
endif()


include(EnableCcache)
include(EndoThirdParties)
Expand All @@ -38,7 +45,10 @@ enable_testing()

add_subdirectory(src)
EndoThirdPartiesSummary2()
message(" flags ")
message(" ENDO_TRACE : ${ENDO_TRACE}")
message(" ENDO_TRACE_PARSER : ${ENDO_TRACE_PARSER}")
message(" ENDO_TRACE_LEXER : ${ENDO_TRACE_LEXER}")
message(STATUS "--------------------------------")
message(STATUS " output flags ")
message(STATUS "--------------------------------")
message(STATUS "endo trace ${ENDO_TRACE}")
message(STATUS "endo trace parser ${ENDO_TRACE_PARSER}")
message(STATUS "endo trace lexer ${ENDO_TRACE_LEXER}")
message(STATUS "--------------------------------")
1 change: 0 additions & 1 deletion src/shell/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ target_link_libraries(Shell PUBLIC fmt::fmt-header-only vtparser crispy::core Co


if(ENDO_TRACE)
message("HERE")
target_compile_definitions(Shell PUBLIC ENDO_TRACE)
endif()
if(ENDO_TRACE_PARSER)
Expand Down

0 comments on commit 5222a9e

Please sign in to comment.