]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: fix libtsan detection 30552/head
authorJeff Layton <jlayton@redhat.com>
Mon, 30 Sep 2019 17:54:13 +0000 (13:54 -0400)
committerJeff Layton <jlayton@redhat.com>
Mon, 30 Sep 2019 18:49:12 +0000 (14:49 -0400)
This variable is case-sensitive.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
cmake/modules/FindSanitizers.cmake

index 4c77c14d1645f90b6e33ca86395b5679f3b4f2f5..833df6fddb516ffc682c15b67d446dcab3e4b1d8 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")