1
0
Fork 0
mirror of https://github.com/KingDuckZ/dindexer.git synced 2024-11-29 01:33:46 +00:00

Fix indentation so vim is happy.

This commit is contained in:
King_DuckZ 2016-06-20 18:50:15 +01:00
parent 8324527073
commit af0f18d5ff

View file

@ -41,68 +41,96 @@
INCLUDE (FindPackageHandleStandardArgs) INCLUDE (FindPackageHandleStandardArgs)
FIND_PATH (CRYPTOPP_ROOT_DIR FIND_PATH (
NAMES cryptopp/cryptlib.h include/cryptopp/cryptlib.h CRYPTOPP_ROOT_DIR
PATHS ENV CRYPTOPPROOT NAMES cryptopp/cryptlib.h include/cryptopp/cryptlib.h
DOC "CryptoPP root directory") PATHS ENV CRYPTOPPROOT
DOC "CryptoPP root directory"
)
# Re-use the previous path: # Re-use the previous path:
FIND_PATH (CRYPTOPP_INCLUDE_DIR FIND_PATH (
NAMES cryptopp/cryptlib.h CRYPTOPP_INCLUDE_DIR
HINTS ${CRYPTOPP_ROOT_DIR} NAMES cryptopp/cryptlib.h
PATH_SUFFIXES include HINTS ${CRYPTOPP_ROOT_DIR}
DOC "CryptoPP include directory") PATH_SUFFIXES include
DOC "CryptoPP include directory"
)
FIND_LIBRARY (CRYPTOPP_LIBRARY_DEBUG FIND_LIBRARY (
NAMES cryptlibd cryptoppd CRYPTOPP_LIBRARY_DEBUG
HINTS ${CRYPTOPP_ROOT_DIR} NAMES cryptlibd cryptoppd
PATH_SUFFIXES lib HINTS ${CRYPTOPP_ROOT_DIR}
DOC "CryptoPP debug library") PATH_SUFFIXES lib
DOC "CryptoPP debug library"
)
FIND_LIBRARY (CRYPTOPP_LIBRARY_RELEASE FIND_LIBRARY (
NAMES cryptlib cryptopp CRYPTOPP_LIBRARY_RELEASE
HINTS ${CRYPTOPP_ROOT_DIR} NAMES cryptlib cryptopp
PATH_SUFFIXES lib HINTS ${CRYPTOPP_ROOT_DIR}
DOC "CryptoPP release library") PATH_SUFFIXES lib
DOC "CryptoPP release library"
)
IF (CRYPTOPP_LIBRARY_DEBUG AND CRYPTOPP_LIBRARY_RELEASE) IF (CRYPTOPP_LIBRARY_DEBUG AND CRYPTOPP_LIBRARY_RELEASE)
SET (CRYPTOPP_LIBRARY SET (
optimized ${CRYPTOPP_LIBRARY_RELEASE} CRYPTOPP_LIBRARY
debug ${CRYPTOPP_LIBRARY_DEBUG} CACHE DOC "CryptoPP library") optimized ${CRYPTOPP_LIBRARY_RELEASE}
debug ${CRYPTOPP_LIBRARY_DEBUG} CACHE DOC "CryptoPP library"
)
ELSEIF (CRYPTOPP_LIBRARY_RELEASE) ELSEIF (CRYPTOPP_LIBRARY_RELEASE)
SET (CRYPTOPP_LIBRARY ${CRYPTOPP_LIBRARY_RELEASE} CACHE DOC SET (
"CryptoPP library") CRYPTOPP_LIBRARY ${CRYPTOPP_LIBRARY_RELEASE} CACHE DOC
"CryptoPP library"
)
ENDIF (CRYPTOPP_LIBRARY_DEBUG AND CRYPTOPP_LIBRARY_RELEASE) ENDIF (CRYPTOPP_LIBRARY_DEBUG AND CRYPTOPP_LIBRARY_RELEASE)
IF (CRYPTOPP_INCLUDE_DIR) IF (CRYPTOPP_INCLUDE_DIR)
SET (_CRYPTOPP_VERSION_HEADER ${CRYPTOPP_INCLUDE_DIR}/cryptopp/config.h) SET (_CRYPTOPP_VERSION_HEADER ${CRYPTOPP_INCLUDE_DIR}/cryptopp/config.h)
IF (EXISTS ${_CRYPTOPP_VERSION_HEADER}) IF (EXISTS ${_CRYPTOPP_VERSION_HEADER})
FILE (STRINGS ${_CRYPTOPP_VERSION_HEADER} _CRYPTOPP_VERSION_TMP REGEX FILE (
"^#define CRYPTOPP_VERSION[ \t]+[0-9]+$") STRINGS ${_CRYPTOPP_VERSION_HEADER} _CRYPTOPP_VERSION_TMP REGEX
"^#define CRYPTOPP_VERSION[ \t]+[0-9]+$"
)
STRING (REGEX REPLACE STRING (
"^#define CRYPTOPP_VERSION[ \t]+([0-9]+)" "\\1" _CRYPTOPP_VERSION_TMP REGEX REPLACE
${_CRYPTOPP_VERSION_TMP}) "^#define CRYPTOPP_VERSION[ \t]+([0-9]+)" "\\1" _CRYPTOPP_VERSION_TMP
${_CRYPTOPP_VERSION_TMP}
)
STRING (REGEX REPLACE "([0-9]+)[0-9][0-9]" "\\1" CRYPTOPP_VERSION_MAJOR STRING (
${_CRYPTOPP_VERSION_TMP}) REGEX REPLACE "([0-9]+)[0-9][0-9]" "\\1" CRYPTOPP_VERSION_MAJOR
STRING (REGEX REPLACE "[0-9]([0-9])[0-9]" "\\1" CRYPTOPP_VERSION_MINOR ${_CRYPTOPP_VERSION_TMP}
${_CRYPTOPP_VERSION_TMP}) )
STRING (REGEX REPLACE "[0-9][0-9]([0-9])" "\\1" CRYPTOPP_VERSION_PATCH STRING (
${_CRYPTOPP_VERSION_TMP}) REGEX REPLACE "[0-9]([0-9])[0-9]" "\\1" CRYPTOPP_VERSION_MINOR
${_CRYPTOPP_VERSION_TMP}
)
STRING (
REGEX REPLACE "[0-9][0-9]([0-9])" "\\1" CRYPTOPP_VERSION_PATCH
${_CRYPTOPP_VERSION_TMP}
)
SET (CRYPTOPP_VERSION_COUNT 3) SET (CRYPTOPP_VERSION_COUNT 3)
SET (CRYPTOPP_VERSION SET (
${CRYPTOPP_VERSION_MAJOR}.${CRYPTOPP_VERSION_MINOR}.${CRYPTOPP_VERSION_PATCH}) CRYPTOPP_VERSION
ENDIF (EXISTS ${_CRYPTOPP_VERSION_HEADER}) ${CRYPTOPP_VERSION_MAJOR}.${CRYPTOPP_VERSION_MINOR}.${CRYPTOPP_VERSION_PATCH}
)
ENDIF (EXISTS ${_CRYPTOPP_VERSION_HEADER})
ENDIF (CRYPTOPP_INCLUDE_DIR) ENDIF (CRYPTOPP_INCLUDE_DIR)
SET (CRYPTOPP_INCLUDE_DIRS ${CRYPTOPP_INCLUDE_DIR}) SET (CRYPTOPP_INCLUDE_DIRS ${CRYPTOPP_INCLUDE_DIR})
SET (CRYPTOPP_LIBRARIES ${CRYPTOPP_LIBRARY}) SET (CRYPTOPP_LIBRARIES ${CRYPTOPP_LIBRARY})
MARK_AS_ADVANCED (CRYPTOPP_INCLUDE_DIR CRYPTOPP_LIBRARY CRYPTOPP_LIBRARY_DEBUG MARK_AS_ADVANCED (
CRYPTOPP_LIBRARY_RELEASE) CRYPTOPP_INCLUDE_DIR CRYPTOPP_LIBRARY CRYPTOPP_LIBRARY_DEBUG
CRYPTOPP_LIBRARY_RELEASE
)
FIND_PACKAGE_HANDLE_STANDARD_ARGS (CryptoPP REQUIRED_VARS CRYPTOPP_ROOT_DIR FIND_PACKAGE_HANDLE_STANDARD_ARGS (
CRYPTOPP_INCLUDE_DIR CRYPTOPP_LIBRARY VERSION_VAR CRYPTOPP_VERSION) CryptoPP REQUIRED_VARS CRYPTOPP_ROOT_DIR
CRYPTOPP_INCLUDE_DIR CRYPTOPP_LIBRARY VERSION_VAR CRYPTOPP_VERSION
)