Skip to content

Commit

Permalink
* NEW Pass filepath of log file from cmake to binary.
Browse files Browse the repository at this point in the history
  • Loading branch information
wanghaEMQ committed Nov 17, 2023
1 parent 0116a94 commit 991b3c8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ if(DEBUG)
add_link_options(-fsanitize=address)
endif(DEBUG)

# SET(LOGTOFILE "/tmp/a.txt")
if(LOGTOFILE)
add_compile_definitions(LOGTOFILE=\"${LOGTOFILE}\")
endif(LOGTOFILE)

#add_subdirectory(hashtable)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/hashtable)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src)
Expand Down

0 comments on commit 991b3c8

Please sign in to comment.