summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2019-07-09 10:03:06 -0400
committerDaniel Gustafsson <daniel@yesql.se>2019-07-09 22:00:47 +0200
commit9d1821755ea652becf1e1086f1bbc1398e58245c (patch)
tree5044ce07b44fd005a790bef04e6c46b005c3f885
parent8dc21dbb8472e8bb68ec3dc35e7fed9cefb679f4 (diff)
downloadcurl-9d1821755ea652becf1e1086f1bbc1398e58245c.tar.gz
CMake: Convert errant elseif() to else()
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>
-rw-r--r--CMake/CurlSymbolHiding.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMake/CurlSymbolHiding.cmake b/CMake/CurlSymbolHiding.cmake
index 15ba46e46..60ee8e682 100644
--- a/CMake/CurlSymbolHiding.cmake
+++ b/CMake/CurlSymbolHiding.cmake
@@ -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()