I've tried one more PROJECT and seems it's fixed now, thanks.<br><br><div class="gmail_quote">2011/10/26 David Cole <span dir="ltr"><<a href="mailto:david.cole@kitware.com">david.cole@kitware.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div bgcolor="#FFFFFF"><div><div></div><div class="h5"><div>On Oct 26, 2011, at 6:03 AM, Anton Sibilev <<a href="mailto:anton.sibilev@gmail.com" target="_blank">anton.sibilev@gmail.com</a>> wrote:<br>
<br></div><div></div><blockquote type="cite"><div>Seem I've found issue, in CMakeCache.txt I have two targets:<div><br></div><div><div>//Value Computed by CMake</div><div>Project_BINARY_DIR:STATIC=C:/_work/test_build</div>
<div>//Value Computed by CMake</div><div>Project_SOURCE_DIR:STATIC=C:/_work/test</div>
<div><br></div><div>//Value Computed by CMake</div><div>test_BINARY_DIR:STATIC=C:/_work/test_build</div><div>//Value Computed by CMake</div><div>test_SOURCE_DIR:STATIC=C:/_work/test</div></div><div><br></div><div>May be that is why I have problem with --build? But I use project( "test" ) function only one time.. How I can remove this from projects generation?<br>
<br><div class="gmail_quote">2011/10/26 Anton Sibilev <span dir="ltr"><<a href="mailto:anton.sibilev@gmail.com" target="_blank">anton.sibilev@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello! Can you please help me?<div>I use such cmdline to run build with CMake - "cmake-2.8.6\bin\cmake --build folder_with_solution", where "folder_with_solution" is folder with some_name.sln file.</div>
<div>And what I have is:</div><div><br></div><div><div>The following files were specified on the command line:</div><div><br></div><div> Project.sln</div><div><br></div><div>These files could not be found and will not be loaded.</div>
</div><div><br></div><div>Can I somehow specify the name of solution/project file? On linux --build works fine with Makefiles.</div><div>Thanks!</div>
</blockquote></div><br></div>
</div></blockquote></div></div><blockquote type="cite"><div><span>--</span><br><span></span><br><span>Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a></span><br><span></span><br><span>Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a></span><br>
<span></span><br><span>Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a></span><br><span></span><br><span>Follow this link to subscribe/unsubscribe:</span><br>
<span><a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a></span></div></blockquote><br><div><br></div><div>The problem here is likely an incorrect value of CMAKE_PROJECT_NAME in the CMakeCache.txt file. If so, that probably means you do not have a PROJECT command in your top level CMakeLists.txt file.</div>
<div><br></div><div>Simply add one, and try a fresh build. (Starting with an empty directory...)</div><div><br></div><div>cmake --build uses the value of CMAKE_PROJECT_NAME to figure out what sln file name to pass to Visual Studio for building.</div>
<div><br></div><div><br></div><div>HTH,</div><div>David</div><font color="#888888"><div><br></div></font></div></blockquote></div><br>