From 942ba80dae253fef93094d178da3ce0abc47da5d Mon Sep 17 00:00:00 2001 From: Kevin Funk Date: Fri, 18 Dec 2015 12:37:19 +0100 Subject: CMake: Cleanup: Strip text from endif/else REVIEW: 126414 --- attic/modules/FindGSSAPI.cmake | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'attic/modules/FindGSSAPI.cmake') diff --git a/attic/modules/FindGSSAPI.cmake b/attic/modules/FindGSSAPI.cmake index 0951c675..942cf558 100644 --- a/attic/modules/FindGSSAPI.cmake +++ b/attic/modules/FindGSSAPI.cmake @@ -17,7 +17,7 @@ if(GSSAPI_LIBS AND GSSAPI_FLAVOR) # in cache already set(GSSAPI_FOUND TRUE) -else(GSSAPI_LIBS AND GSSAPI_FLAVOR) +else() find_program(KRB5_CONFIG NAMES krb5-config PATHS /opt/local/bin @@ -37,7 +37,7 @@ else(GSSAPI_LIBS AND GSSAPI_FLAVOR) if(_return_VALUE) message(STATUS "GSSAPI configure check failed.") set(HAVE_KRB5_GSSAPI FALSE) - endif(_return_VALUE) + endif() exec_program(${KRB5_CONFIG} ARGS --cflags gssapi RETURN_VALUE _return_VALUE OUTPUT_VARIABLE GSSAPI_INCS) string(REGEX REPLACE "(\r?\n)+$" "" GSSAPI_INCS "${GSSAPI_INCS}") @@ -47,19 +47,19 @@ else(GSSAPI_LIBS AND GSSAPI_FLAVOR) set(GSSAPI_FLAVOR_MIT) if(gssapi_flavor_tmp MATCHES ".*Massachusetts.*") set(GSSAPI_FLAVOR "MIT") - else(gssapi_flavor_tmp MATCHES ".*Massachusetts.*") + else() set(GSSAPI_FLAVOR "HEIMDAL") - endif(gssapi_flavor_tmp MATCHES ".*Massachusetts.*") + endif() if(NOT HAVE_KRB5_GSSAPI) if (gssapi_flavor_tmp MATCHES "Sun Microsystems.*") message(STATUS "Solaris Kerberos does not have GSSAPI; this is normal.") set(GSSAPI_LIBS) set(GSSAPI_INCS) - else(gssapi_flavor_tmp MATCHES "Sun Microsystems.*") + else() message(WARNING "${KRB5_CONFIG} failed unexpectedly.") - endif(gssapi_flavor_tmp MATCHES "Sun Microsystems.*") - endif(NOT HAVE_KRB5_GSSAPI) + endif() + endif() if(GSSAPI_LIBS) # GSSAPI_INCS can be also empty, so don't rely on that set(GSSAPI_FOUND TRUE) @@ -71,8 +71,8 @@ else(GSSAPI_LIBS AND GSSAPI_FLAVOR) mark_as_advanced(GSSAPI_INCS GSSAPI_LIBS GSSAPI_FLAVOR) - endif(GSSAPI_LIBS) + endif() - endif(KRB5_CONFIG) + endif() -endif(GSSAPI_LIBS AND GSSAPI_FLAVOR) +endif() -- cgit v1.2.1