Ld: framework not found Cocoa

Runs no problem, no error, no output in the terminal. With my project if I manually go into the build settings and extra link flags, if I take out these everything compiles and links fine: -framework Carbon -framework Cocoa -Wl,–no-undefined
I replace the last one with -Wl,-undefined,error and it all works. Is the SDL cmakelists script up to date? no idea why I can get rid of Cocoa and it still compiles and links successfully.