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. K > 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) > #CHECK_CXX_COMPILER_FLAG(-Wall HAS_WALL) > #IF(HAS_WALL) > # set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall") > #ENDIF(HAS_WALL) > > 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: > IF(${CMAKE_SYSTEM_NAME} MATCHES "Linux") > ...I'm going to add it now...please test it, if it works on linux. > > Tom > To visit archive or unsubscribe, follow: > //www.freelists.org/list/glideplan_swproj