]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: fix libtsan detection
authorJeff Layton <jlayton@redhat.com>
Mon, 30 Sep 2019 17:54:13 +0000 (13:54 -0400)
committerNathan Cutler <ncutler@suse.com>
Mon, 27 Jan 2020 18:08:23 +0000 (19:08 +0100)
This variable is case-sensitive.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
(cherry picked from commit 09bd258a9f2c3b6bd195c05196698b42da4dd7a4)

cmake/modules/FindSanitizers.cmake

index fbf8ed9e711fcdf1f6b2eee1fafcb5b609ec2b87..0f4c8606af7aa37abcfc75074142a77d220fd324 100644 (file)
@@ -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")