cmake_template icon indicating copy to clipboard operation
cmake_template copied to clipboard

myproject_ENABLE_ADDRESS_SANITIZER should be myproject_ENABLE_SANITIZER_ADDRESS

Open db-tech opened this issue 2 years ago • 1 comments

In this piece of code:

if(myproject_BUILD_FUZZ_TESTS)
  message(AUTHOR_WARNING "Building Fuzz Tests, using fuzzing sanitizer https://www.llvm.org/docs/LibFuzzer.html")
  if (NOT myproject_ENABLE_ADDRESS_SANITIZER AND NOT myproject_ENABLE_THREAD_SANITIZER)
    message(WARNING "You need asan or tsan enabled for meaningful fuzz testing")
  endif()
  add_subdirectory(fuzz_test)

endif()

could it be that myproject_ENABLE_ADDRESS_SANITIZER should be myproject_ENABLE_SANITIZER_ADDRESS and myproject_ENABLE_THREAD_SANITIZERshould be myproject_ENABLE_SANITIZER_THREAD` ?

db-tech avatar Aug 23 '23 10:08 db-tech

In ProjectOptions.cmake, it is myproject_ENABLE_SANITIZER_ADDRESS.

TheAlexFuller avatar Mar 15 '24 14:03 TheAlexFuller