[glideplan_swproj] Re: CMake

  • From: Kuba Marek <blue.cube@xxxxxxxxx>
  • To: glideplan_swproj@xxxxxxxxxxxxx
  • Date: Sun, 1 Jan 2012 21:42:38 +0100

I think the list of osgearth libraries came from maria's code, but I'm
really not sure.

The cmake code you posted here checks if the flag -Wall works in the
current compiler and adds it if it does. I thought it would only work
on gcc, though.
I think warnings should be enabled on all platflorms. If the code
generated by moc causes warnings we should either try to fix it or
silence warnings only from those files.


> Hi Kuba!
> 1)
> I removed the build directory, run cmake, build application in VS.
> Some functions were missing (linker errors) ...I added osgGA library
> to required set of libraries in cmakelists and now it works well.
> How do you know, that this subset of osg libraries is the right one?
> ...did you search the library dependencies?
> 2)
> When I commented out these lines in the cmakelists (the commit with
> wall flag)
> #INCLUDE(CheckCXXCompilerFlag)
> warning disappeared and everything builds well.
> Why are these lines in cmakelists?
> If it is for "Enable compiler warnings on linux" as you mentioned in
> commit, there should be statement:
> ...I'm going to add it now...please test it, if it works on linux.
> Tom

> To visit archive or unsubscribe, follow:
> http://www.freelists.org/list/glideplan_swproj

Other related posts: