CMake Error at OutputNameMatchesObjects\.cmake:[0-9]+ \(file\): Error evaluating generator expression: \$ Objects of target "foo" referenced but is not one of the allowed target types \(EXECUTABLE, STATIC, SHARED, MODULE, OBJECT\)\. Call Stack \(most recent call first\): CMakeLists\.txt:[0-9]+ \(include\)