def make_os_specific_shell_path(output):
    """ Tries to make path readable with CMake """
    variables_to_replace = {'$(SolutionDir)': '${CMAKE_SOURCE_DIR}/',
        '$(ProjectDir)': '${CMAKE_CURRENT_SOURCE_DIR}/', '$(OutDir)':
        '${OUTPUT_DIRECTORY}', '$(TargetPath)':
        '$<TARGET_FILE:${PROJECT_NAME}>'}
    for var in variables_to_replace:
        if var in output:
            output = output.replace(var, '$<SHELL_PATH:{}>'.format(
                variables_to_replace[var]))
    return output
