Cannot build on Mac. Have a problem with glPlugin goal. Attached screenshots with compiler errors.

Then I tried to add -framework cocoa in Libraries.cmake file, but after that I got following error:

I read on some forum that errors due to missing Cocoa framework lib, but I can't figure out how to add it to project.
Cannot build on Mac. Have a problem with glPlugin goal. Attached screenshots with compiler errors.
Then I tried to add
-framework cocoain Libraries.cmake file, but after that I got following error:I read on some forum that errors due to missing Cocoa framework lib, but I can't figure out how to add it to project.