From: Jeff Layton Date: Mon, 30 Sep 2019 17:54:13 +0000 (-0400) Subject: cmake: fix libtsan detection X-Git-Tag: v15.1.0~1362^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=09bd258a9f2c3b6bd195c05196698b42da4dd7a4;p=ceph.git cmake: fix libtsan detection This variable is case-sensitive. Signed-off-by: Jeff Layton --- diff --git a/cmake/modules/FindSanitizers.cmake b/cmake/modules/FindSanitizers.cmake index 4c77c14d1645..833df6fddb51 100644 --- a/cmake/modules/FindSanitizers.cmake +++ b/cmake/modules/FindSanitizers.cmake @@ -20,7 +20,7 @@ foreach(component ${Sanitizers_FIND_COMPONENTS}) elseif(NOT CMAKE_POSITION_INDEPENDENT_CODE) message(SEND_ERROR "TSan requires all code to be position independent") endif() - set(Sanitizers_Thread_COMPILE_OPTIONS "-fsanitize=thread") + set(Sanitizers_thread_COMPILE_OPTIONS "-fsanitize=thread") elseif(component STREQUAL "undefined_behavior") # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88684 set(Sanitizers_undefined_behavior_COMPILE_OPTIONS "-fsanitize=undefined;-fno-sanitize=vptr")