def CreateCMakeTargetBaseName(qualified_target):
 (_, gyp_target_name, gyp_target_toolset) = gyp.common.ParseQualifiedTarget(qualified_target)
 cmake_target_base_name = gyp_target_name
 if (gyp_target_toolset and (gyp_target_toolset != 'target')):
  cmake_target_base_name += ('_' + gyp_target_toolset)
 return StringToCMakeTargetName(cmake_target_base_name)

def CreateCMakeTargetBaseName ( qualified_target ) : ( _ , gyp_target_name , gyp_target_toolset ) = gyp . common . ParseQualifiedTarget ( qualified_target ) cmake_target_base_name = gyp_target_name if ( gyp_target_toolset and ( gyp_target_toolset != 'target' ) ) : cmake_target_base_name += ( '_' + gyp_target_toolset ) return StringToCMakeTargetName ( cmake_target_base_name )
this is the name we would like the target to have .