ocl compile on ubuntu 10.04 and similar

21 views
Skip to first unread message

andyw

unread,
Nov 12, 2011, 4:14:46 AM11/12/11
to openc...@googlegroups.com
Hi all,
A few issues have been posted about the "-Werror" flag which treats warnings as errors. This results in build problems with old versions of gcc.
I now put together a simple cmake script that figures out the gcc version:

In the main CMakeLists.txt file the -Werror flag can then be used for gcc >=4.6.x and otherwise not used.

Let me know if this helps,
Anders
Ps. I have been busy with the voronoi-diagram code. Hope to get that working 'soon'. After that I imagine I will resume work on the cutting simulation.

Mark

unread,
Nov 12, 2011, 7:31:39 AM11/12/11
to openc...@googlegroups.com
Hi Anders,

If you want to crank the warnings way up, Sean from BRL-CAD suggested the following to me:
We presently use the following flags across most of BRL-CAD, covering most warnings that can be easily fixed and that happens to have close parity with the warnings MSVC produces by default:  -pedantic -W -Wall -Wundef -Wfloat-equal -Wshadow -Winline -Wno-long-long

Regards
Mark
Reply all
Reply to author
Forward
0 new messages