IF(EXISTS ${SLEPC_SLEPCVERSION_H})
FILE(STRINGS "${SLEPC_SLEPCVERSION_H}" SLEPC_VERSION_MAJOR_STRING
REGEX "#define.*SLEPC_VERSION_MAJOR")
- STRING(REGEX REPLACE "^.*SLEPC_VERSION_MAJOR.*([0-9]+).*" "\\1"
+ STRING(REGEX REPLACE "^.*SLEPC_VERSION_MAJOR.* ([0-9]+).*" "\\1"
SLEPC_VERSION_MAJOR "${SLEPC_VERSION_MAJOR_STRING}"
)
FILE(STRINGS "${SLEPC_SLEPCVERSION_H}" SLEPC_VERSION_MINOR_STRING
REGEX "#define.*SLEPC_VERSION_MINOR")
- STRING(REGEX REPLACE "^.*SLEPC_VERSION_MINOR.*([0-9]+).*" "\\1"
+ STRING(REGEX REPLACE "^.*SLEPC_VERSION_MINOR.* ([0-9]+).*" "\\1"
SLEPC_VERSION_MINOR "${SLEPC_VERSION_MINOR_STRING}"
)
FILE(STRINGS "${SLEPC_SLEPCVERSION_H}" SLEPC_VERSION_SUBMINOR_STRING
REGEX "#define.*SLEPC_VERSION_SUBMINOR")
- STRING(REGEX REPLACE "^.*SLEPC_VERSION_SUBMINOR.*([0-9]+).*" "\\1"
+ STRING(REGEX REPLACE "^.*SLEPC_VERSION_SUBMINOR.* ([0-9]+).*" "\\1"
SLEPC_VERSION_SUBMINOR "${SLEPC_VERSION_SUBMINOR_STRING}"
)
FILE(STRINGS "${SLEPC_SLEPCVERSION_H}" SLEPC_VERSION_PATCH_STRING
REGEX "#define.*SLEPC_VERSION_PATCH")
- STRING(REGEX REPLACE "^.*SLEPC_VERSION_PATCH.*([0-9]+).*" "\\1"
+ STRING(REGEX REPLACE "^.*SLEPC_VERSION_PATCH.* ([0-9]+).*" "\\1"
SLEPC_VERSION_PATCH "${SLEPC_VERSION_PATCH_STRING}"
)
SET(SLEPC_VERSION