• David Cole's avatar
    FindPackageMessage: Eliminate new lines using REGEX REPLACE · cd81da30
    David Cole authored
    Re-fix problem exposed by recent commit to FindPythonInterp.
    If the find "details" has new lines in it, then replace them
    with the empty string so that the string may be saved as a
    cache entry that can be re-read next time CMake runs.
    Use REGEX REPLACE, and replace with an empty string, eliminating
    the problem characters, so that we may easily extend this to
    include additional problem characters in the future if necessary.
FindPackageMessage.cmake 2.02 KB