Skip to content

Commit

Permalink
fix(MSVC): Address Sanitizer detection logic is inverted
Browse files Browse the repository at this point in the history
When configuring for MSVC Address Sanitizer was no longer enabled by
default, this is due to the detection check being inverted
  • Loading branch information
ddassie-texa committed Jun 17, 2024
1 parent 29770b7 commit f9c05c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Sanitizers.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ function(
elseif(MSVC)
# or it is MSVC and has run vcvarsall
string(FIND "$ENV{PATH}" "$ENV{VSINSTALLDIR}" index_of_vs_install_dir)
if("${index_of_vs_install_dir}" STREQUAL "-1")
if(NOT "${index_of_vs_install_dir}" STREQUAL "-1")
list(APPEND SANITIZERS "address")
endif()
endif()
Expand Down

0 comments on commit f9c05c1

Please sign in to comment.