Only happens when using older cmake versions. But this was definitly an issue. Target name should be the same on the file (case sensitive)