]> granicus.if.org Git - curl/commitdiff
CMake: Convert errant elseif() to else()
authorKyle Edwards <kyle.edwards@kitware.com>
Tue, 9 Jul 2019 14:03:06 +0000 (10:03 -0400)
committerDaniel Gustafsson <daniel@yesql.se>
Tue, 9 Jul 2019 20:00:47 +0000 (22:00 +0200)
CMake interprets an elseif() with no arguments as elseif(FALSE),
resulting in the elseif() block not being executed. That is not what
was intended here. Change the empty elseif() to an else() as it was
intended.

Closes #4101
Reported-by: Artalus <artalus-mail@yandex.ru>
Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
CMake/CurlSymbolHiding.cmake

index 15ba46e46727272b0fbb155163ffe0b56a290924..60ee8e68238da172b2579b41a4bc2c8e85209427 100644 (file)
@@ -53,7 +53,7 @@ elseif(MSVC)
     message(WARNING "Hiding private symbols regardless CURL_HIDDEN_SYMBOLS being disabled.")
     set(HIDES_CURL_PRIVATE_SYMBOLS TRUE)
   endif()
-elseif()
+else()
   set(HIDES_CURL_PRIVATE_SYMBOLS FALSE)
 endif()