tasks/rtloader.py
def clear_cmake_cache(rtloader_path, settings):
    """
    CMake is not regenerated when we change an option. This function detect the
    current cmake settings and remove the cache if they have change to retrigger
    a cmake build.
    """
    cmake_cache = get_cmake_cache_path(rtloader_path)
    if not os.path.exists(cmake_cache):
        return

    settings_not_found = settings.copy()
    with open(cmake_cache) as cache:
        for line in cache.readlines():
            for key, value in settings.items():
                if line.strip() == key + "=" + value:
                    settings_not_found.pop(key)

    if settings_not_found:
        os.remove(cmake_cache)

    CMake is not regenerated when we change an option. This function detect the
    current cmake settings and remove the cache if they have change to retrigger
    a cmake build.
    
CMake is not regenerated when we change an option. This function detect the
current cmake settings and remove the cache if they have change to retrigger
a cmake build.
CMake is not regenerated when we change an option . This function detect the current cmake settings and remove the cache if they have change to retrigger a cmake build .
def clear_cmake_cache(rtloader_path, settings):
    cmake_cache = get_cmake_cache_path(rtloader_path)
    if not os.path.exists(cmake_cache):
        return
    settings_not_found = settings.copy()
    with open(cmake_cache) as cache:
        for line in cache.readlines():
            for key, value in settings.items():
                if line.strip() == key + "=" + value:
                    settings_not_found.pop(key)
    if settings_not_found:
        os.remove(cmake_cache)
def clear_cmake_cache ( rtloader_path , settings ) : cmake_cache = get_cmake_cache_path ( rtloader_path ) if not os . path . exists ( cmake_cache ) : return settings_not_found = settings . copy ( ) with open ( cmake_cache ) as cache : for line in cache . readlines ( ) : for key , value in settings . items ( ) : if line . strip ( ) == key + "=" + value : settings_not_found . pop ( key ) if settings_not_found : os . remove ( cmake_cache )
CMake is not regenerated when we change an option.
CMake is not regenerated when we change an option .
"""
    CMake is not regenerated when we change an option. This function detect the
    current cmake settings and remove the cache if they have change to retrigger
    a cmake build.
    """
rtloader_path
settings