Skip to content

Commit

Permalink
try to fix codeql
Browse files Browse the repository at this point in the history
  • Loading branch information
HTHou committed Sep 12, 2024
1 parent 0e28c30 commit 5db81d9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ message("cmake using: USE_CPP11=${USE_CPP11}")


set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
if(NOT WIN32)
# enable address sanitizer default
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=address -g")
endif()

if(DEFINED ENV{CXX})
set(CMAKE_CXX_COMPILER $ENV{CXX})
Expand Down

0 comments on commit 5db81d9

Please sign in to comment.