Fix elseif() in place of else()

This commit is contained in:
Artalus
2019-07-03 11:57:08 +03:00
parent 3b90096838
commit f4ed56ab63
5 changed files with 5 additions and 5 deletions

View File

@@ -15,7 +15,7 @@ if(CMAKE_C_COMPILER_VERSION_INTERNAL VERSION_GREATER 7)
set(CMAKE_C90_EXTENSION_COMPILE_OPTION --c89 -e) set(CMAKE_C90_EXTENSION_COMPILE_OPTION --c89 -e)
set(CMAKE_C99_STANDARD_COMPILE_OPTION "") set(CMAKE_C99_STANDARD_COMPILE_OPTION "")
set(CMAKE_C99_EXTENSION_COMPILE_OPTION -e) set(CMAKE_C99_EXTENSION_COMPILE_OPTION -e)
elseif() else()
set(CMAKE_C90_STANDARD_COMPILE_OPTION "") set(CMAKE_C90_STANDARD_COMPILE_OPTION "")
set(CMAKE_C90_EXTENSION_COMPILE_OPTION -e) set(CMAKE_C90_EXTENSION_COMPILE_OPTION -e)
endif() endif()

View File

@@ -74,7 +74,7 @@ else()
if(Backtrace_INCLUDE_DIR) if(Backtrace_INCLUDE_DIR)
# OpenBSD has libbacktrace renamed to libexecinfo # OpenBSD has libbacktrace renamed to libexecinfo
find_library(Backtrace_LIBRARY "execinfo") find_library(Backtrace_LIBRARY "execinfo")
elseif() # respect user wishes else() # respect user wishes
set(_Backtrace_HEADER_TRY "backtrace.h") set(_Backtrace_HEADER_TRY "backtrace.h")
find_path(Backtrace_INCLUDE_DIR ${_Backtrace_HEADER_TRY}) find_path(Backtrace_INCLUDE_DIR ${_Backtrace_HEADER_TRY})
find_library(Backtrace_LIBRARY "backtrace") find_library(Backtrace_LIBRARY "backtrace")

View File

@@ -670,7 +670,7 @@ if (QT_QMAKE_EXECUTABLE AND
get_filename_component(qt_headers "${QT_QTCORE_INCLUDE_DIR}/../" ABSOLUTE) get_filename_component(qt_headers "${QT_QTCORE_INCLUDE_DIR}/../" ABSOLUTE)
set(QT_HEADERS_DIR "${qt_headers}" CACHE INTERNAL "" FORCE) set(QT_HEADERS_DIR "${qt_headers}" CACHE INTERNAL "" FORCE)
endif() endif()
elseif() else()
message("Warning: QT_QMAKE_EXECUTABLE reported QT_INSTALL_HEADERS as ${qt_headers}") message("Warning: QT_QMAKE_EXECUTABLE reported QT_INSTALL_HEADERS as ${qt_headers}")
message("Warning: But QtCore couldn't be found. Qt must NOT be installed correctly.") message("Warning: But QtCore couldn't be found. Qt must NOT be installed correctly.")
endif() endif()

View File

@@ -25,7 +25,7 @@ foreach(i 1 2)
if(line MATCHES "^ *<PackageReference .* Version=\"${testVersion}\".*>$") if(line MATCHES "^ *<PackageReference .* Version=\"${testVersion}\".*>$")
set(Library${i}Found TRUE) set(Library${i}Found TRUE)
message(STATUS "foo.vcxproj is using package reference ${testLibrary} with version ${testVersion}") message(STATUS "foo.vcxproj is using package reference ${testLibrary} with version ${testVersion}")
elseif() else()
message(STATUS "foo.vcxproj failed to define reference ${testLibrary} with version ${testVersion}") message(STATUS "foo.vcxproj failed to define reference ${testLibrary} with version ${testVersion}")
set(Library${i}Found FALSE) set(Library${i}Found FALSE)
endif() endif()

View File

@@ -53,7 +53,7 @@ elseif(MSVC)
message(WARNING "Hiding private symbols regardless CURL_HIDDEN_SYMBOLS being disabled.") message(WARNING "Hiding private symbols regardless CURL_HIDDEN_SYMBOLS being disabled.")
set(HIDES_CURL_PRIVATE_SYMBOLS TRUE) set(HIDES_CURL_PRIVATE_SYMBOLS TRUE)
endif() endif()
elseif() else()
set(HIDES_CURL_PRIVATE_SYMBOLS FALSE) set(HIDES_CURL_PRIVATE_SYMBOLS FALSE)
endif() endif()