def NormjoinPathForceCMakeSource(base_path, rel_path):
 if os.path.isabs(rel_path):
  return rel_path
 if any([rel_path.startswith(var) for var in FULL_PATH_VARS]):
  return rel_path
 return os.path.join('${CMAKE_CURRENT_LIST_DIR}', os.path.normpath(os.path.join(base_path, rel_path)))

def NormjoinPathForceCMakeSource ( base_path , rel_path ) : if os . path . isabs ( rel_path ) : return rel_path if any ( [ rel_path . startswith ( var ) for var in FULL_PATH_VARS ] ) : return rel_path return os . path . join ( '${CMAKE_CURRENT_LIST_DIR}' , os . path . normpath ( os . path . join ( base_path , rel_path ) ) )
resolves rel_path against base_path and returns the result .