[CMake] Fix the option declaration
authorPetr Hosek <phosek@google.com>
Tue, 22 Jun 2021 18:58:26 +0000 (11:58 -0700)
committerPetr Hosek <phosek@google.com>
Tue, 22 Jun 2021 18:58:26 +0000 (11:58 -0700)
This addresses build issue introduced in
b9792638b0bfb308e0c7c125ac78f4ebf910c11b.

compiler-rt/CMakeLists.txt

index 24018ca..c961c7f 100644 (file)
@@ -446,7 +446,7 @@ if("${CMAKE_SYSTEM_NAME}" STREQUAL "Fuchsia")
 else()
   set(SANITIZER_NO_UNDEFINED_SYMBOLS_DEFAULT OFF)
 endif
-option(SANITIZER_NO_UNDEFINED_SYMBOLS ${SANITIZER_NO_UNDEFINED_SYMBOLS_DEFAULT})
+option(SANITIZER_NO_UNDEFINED_SYMBOLS "Report error on unresolved symbol references" ${SANITIZER_NO_UNDEFINED_SYMBOLS_DEFAULT})
 if (SANITIZER_NO_UNDEFINED_SYMBOLS)
   list(APPEND SANITIZER_COMMON_LINK_FLAGS -Wl,-z,defs)
 endif()