# String literal with escaped quotes
string(REGEX MATCH "^.*<maintainer.*email=\"[^\"]*\">([^<]*)</maintainer>.*$" match ${package})

# Escaped quotes outside of strings
add_custom_command (OUTPUT ${TOOL}.1
    COMMAND pod2man --center=\"GeographicLib Utilities\"
    --release=\"GeographicLib ${PROJECT_VERSION}\"
    ${CMAKE_CURRENT_SOURCE_DIR}/${TOOL}.pod > ${TOOL}.1
    COMMENT "Building man page for ${TOOL}"
    MAIN_DEPENDENCY ${TOOL}.pod)
