On 09/09/2014 02:05 PM, Sonya Blade wrote:
Hi Nils,
You guess is correct it is not top level CMakeLists.txt, but actually
originator instruct to do so
and even instruct to add the additional lines to sub-level
CMakeLists.txt. Probably I misinterpreted it,
and probably this is what he meant:
"Add the additional lines to the sub level CmakeLists but run the
top-level Cmakelists file".

In in case modifying the auto generated code sounds weird to me, as a
more experienced user than me
do you spot any abnormalities by runing a quick eye at the code below ?

Originator Quote (OSG Cookbook)
{
/When we have the CMakeLists.txt file in the project folder (in projects//
/osgWeb), open it with any text editor and modify the last few lines:/
/
/
/find_path( OPENSCENEGRAPH_ROOT include/osg/Node PATHS/
/$ENV{OSG_ROOT} )/
/include_directories( ${OPENSCENEGRAPH_ROOT}/include )/
/link_directories( ${Boost_LIBRARY_DIRS}/
/${OPENSCENEGRAPH_ROOT}/lib )/
/include_platform()/
/target_link_libraries(${PROJECT_NAME} OpenThreads/
/osg osgDB osgGA osgViewer)/
}

If the issue is with the generator you might want to bring this up with the project maintainers.

Generated CMake projects are a bit of an oddity given that most CMake projects are handwritten and CMake itself does not provide the facilities used for the generation.

Nils

--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Reply via email to