Skip to content

Commit

Permalink
cmake format
Browse files Browse the repository at this point in the history
  • Loading branch information
zjeffer committed Jan 17, 2025
1 parent 7a01ce5 commit 0f2daee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTORCC ON)

# address sanitizer can be enabled by running cmake with -DENABLE_ASAN=ON
if(ENABLE_ASAN AND (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID MATCHES "Clang"))
if(ENABLE_ASAN AND (CMAKE_CXX_COMPILER_ID STREQUAL "GNU"
OR CMAKE_CXX_COMPILER_ID MATCHES "Clang"))
message(STATUS "Enabling AddressSanitizer")
set(ADDRESS_SANITIZER_FLAGS "-fsanitize=address -fno-omit-frame-pointer")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${ADDRESS_SANITIZER_FLAGS}")
Expand Down

0 comments on commit 0f2daee

Please sign in to comment.