From Pere: The logic in net/net/CMakelists.txt in master is wrong (it is correct in the patches). It should be  'OR' and not 'AND'