]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: fix WITH_UBSAN 28725/head
authorCasey Bodley <cbodley@redhat.com>
Mon, 24 Jun 2019 15:35:25 +0000 (11:35 -0400)
committerCasey Bodley <cbodley@redhat.com>
Mon, 24 Jun 2019 15:35:27 +0000 (11:35 -0400)
CMake Error at cmake/modules/FindSanitizers.cmake:28 (message):
  Unsupported sanitizer: undefined-behavior

Signed-off-by: Casey Bodley <cbodley@redhat.com>
CMakeLists.txt

index 4418099f77a46443032035f955d158c186d125c9..ffdabda7c80e4513a6d20d22fa57cb0e8f0ecdb9 100644 (file)
@@ -608,7 +608,7 @@ endif()
 
 option(WITH_UBSAN "build with UBSAN" OFF)
 if(WITH_UBSAN)
-  list(APPEND sanitizers "undefined-behavior")
+  list(APPEND sanitizers "undefined_behavior")
 endif()
 
 if(sanitizers)