<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><font face="Calibri">Hi Nils,</font><br id="FontBreak">You guess is correct it is not top level CMakeLists.txt, but actually originator instruct to do so<div>and even instruct to add the additional lines to sub-level CMakeLists.txt. Probably I misinterpreted it,</div><div>and probably this is what he meant:</div><div>"<span style="font-size: 12pt;">Add the additional lines to the sub level CmakeLists but run the top-level Cmakelists file".</span></div><div><span style="font-size: 12pt;"><br></span></div><div><span style="font-size: 12pt;">In in case modifying the auto generated code sounds weird to me, as a more experienced user than me </span></div><div><span style="font-size: 12pt;">do you spot any abnormalities by runing </span><span style="font-size: 12pt;">a quick eye at the code below ?</span></div><div><br></div><div>Originator Quote (OSG Cookbook)</div><div><div>{</div><div><i>When we have the CMakeLists.txt file in the project folder (in projects/</i></div><div><i>osgWeb), open it with any text editor and modify the last few lines:</i></div><div><i><br></i></div><div><i>find_path( OPENSCENEGRAPH_ROOT include/osg/Node PATHS</i></div><div><i>$ENV{OSG_ROOT} )</i></div><div><i>include_directories( ${OPENSCENEGRAPH_ROOT}/include )</i></div><div><i>link_directories( ${Boost_LIBRARY_DIRS}</i></div><div><i>${OPENSCENEGRAPH_ROOT}/lib )</i></div><div><i>include_platform()</i></div><div><i>target_link_libraries(${PROJECT_NAME} OpenThreads</i></div><div><i>osg osgDB osgGA osgViewer)</i></div><div>}</div><div>Regards,</div><div><br><div>> Date: Tue, 9 Sep 2014 13:56:15 +0200<br>> From: nilsgladitz@gmail.com<br>> To: sonyablade2010@hotmail.com; cmake@cmake.org<br>> Subject: Re: [CMake] Corrupted CmakeLists.txt File how to heal it ?<br>> <br>> On 09/09/2014 01:34 PM, Sonya Blade wrote:<br>> > I Use Cmake-GUI 2.8.12.2 to configure the CMakeLists.txt file but no<br>> > matter which compiler I set ( I prefer Code::Blocks MinGW Makefile)<br>> >   Cmake-GUI produces the "Error in configurition process, project files<br>> > may be invalid" dialog, with following report,<br>> ><br>> > /CMake Error at CMakeLists.txt:11 (Project):<br>> > project PROJECT called with incorrect number of arguments<br>> ><br>> > /<br>> > /CMake Error at CMakeLists.txt:39 (include_platform):<br>> > Unknown CMake command "include_platform".<br>> ><br>> > /<br>> > /Configuring incomplete, errors occurred!/<br>> > /<br>> > /<br>> > What is wrong here I 'll appreciate your guidance,<br>> <br>> Is it possible that this isn't the top-level CMakeLists.txt?<br>> <br>> It looks like the PLUGIN_NAME variable isn't set which is probably why <br>> project() complains.<br>> <br>> Also I see nothing that would define the include_platform() <br>> function/macro which is missing.<br>> <br>> Maybe both the variable and the function/macro are set up in a parent <br>> CMakeLists.txt?<br>> <br>> Nils<br></div></div></div>                                      </div></body>
</html>