cmake fix for NET