Commit 85da2ee8 authored by Harald Sitter's avatar Harald Sitter 🏳🌈
Browse files

style++

4 space indentation + cleaner endif'ing
parent 025988c6
...@@ -36,28 +36,26 @@ if(SAMBA_INCLUDE_DIR AND SAMBA_LIBRARIES) ...@@ -36,28 +36,26 @@ if(SAMBA_INCLUDE_DIR AND SAMBA_LIBRARIES)
check_symbol_exists(smbc_option_set "libsmbclient.h" SAMBA_HAVE_SMBC_OPTION_SET) check_symbol_exists(smbc_option_set "libsmbclient.h" SAMBA_HAVE_SMBC_OPTION_SET)
cmake_pop_check_state() cmake_pop_check_state()
# fail if smbc_set_context() was required but hasn't been found # fail if smbc_set_context() was required but hasn't been found
if (SAMBA_REQUIRE_SMBC_SET_CONTEXT AND NOT SAMBA_HAVE_SMBC_SET_CONTEXT) if(SAMBA_REQUIRE_SMBC_SET_CONTEXT AND NOT SAMBA_HAVE_SMBC_SET_CONTEXT)
set(SAMBA_FOUND FALSE) set(SAMBA_FOUND FALSE)
endif (SAMBA_REQUIRE_SMBC_SET_CONTEXT AND NOT SAMBA_HAVE_SMBC_SET_CONTEXT) endif()
# fail if smbc_option_set() was required but hasn't been found # fail if smbc_option_set() was required but hasn't been found
if (SAMBA_REQUIRE_SMBC_OPTION_SET AND NOT SAMBA_HAVE_SMBC_OPTION_SET) if (SAMBA_REQUIRE_SMBC_OPTION_SET AND NOT SAMBA_HAVE_SMBC_OPTION_SET)
set(SAMBA_FOUND FALSE) set(SAMBA_FOUND FALSE)
endif (SAMBA_REQUIRE_SMBC_OPTION_SET AND NOT SAMBA_HAVE_SMBC_OPTION_SET) endif()
else(SAMBA_INCLUDE_DIR AND SAMBA_LIBRARIES) else()
set(SAMBA_FOUND FALSE) set(SAMBA_FOUND FALSE)
set(SAMBA_HAVE_SMBC_SET_CONTEXT FALSE) set(SAMBA_HAVE_SMBC_SET_CONTEXT FALSE)
endif(SAMBA_INCLUDE_DIR AND SAMBA_LIBRARIES) endif()
if(SAMBA_FOUND) if(SAMBA_FOUND)
if(NOT Samba_FIND_QUIETLY) if(NOT Samba_FIND_QUIETLY)
message(STATUS "Found samba: ${SAMBA_LIBRARIES}") message(STATUS "Found samba: ${SAMBA_LIBRARIES}")
endif(NOT Samba_FIND_QUIETLY) endif()
else(SAMBA_FOUND) else()
if (Samba_FIND_REQUIRED) if(Samba_FIND_REQUIRED)
message(FATAL_ERROR "Could not find Samba library") message(FATAL_ERROR "Could not find Samba library")
endif (Samba_FIND_REQUIRED) endif()
endif(SAMBA_FOUND) endif()
mark_as_advanced(SAMBA_INCLUDE_DIR SAMBA_LIBRARIES) mark_as_advanced(SAMBA_INCLUDE_DIR SAMBA_LIBRARIES)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment