It's usually a good idea to use full path names with functions that take file names as arguments.<br><br>I'd still be curious to know what the error/confusing output was, though. Maybe the error text could use some improvement...?<br>
<br><br>Glad you got it working,<br>David<br><br><br><div class="gmail_quote">On Thu, May 14, 2009 at 8:50 PM, Henry Johnson <span dir="ltr"><<a href="mailto:misc@faradayco.com">misc@faradayco.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>
The link to the sourceforge project is:<br>
<a href="http://glt.cvs.sourceforge.net/viewvc/glt/glt/src/csg/" target="_blank">http://glt.cvs.sourceforge.net/viewvc/glt/glt/src/csg/</a><br>
<br>
I think I know what the problem is, or at least what fixed it for me.<br>
<br>
Original CMakeLists.txt contained:<br>
IF (EXISTS src/program/raster)<br>
ADD_SUBDIRECTORY(src/program/raster)<br>
ENDIF (EXISTS src/program/raster)<br>
<br>
This fixed it:<br>
IF (EXISTS ${CMAKE_SOURCE_DIR}/src/program/raster)<br>
ADD_SUBDIRECTORY(${CMAKE_SOURCE_DIR}/src/program/raster)<br>
ENDIF (EXISTS ${CMAKE_SOURCE_DIR}/src/program/raster)<br>
<br>
I don't know if this is because of the way I had CMake set up, or if it is a fault with the CMakeLists.txt, but it now works. CMake is great!<br>
<br>
Thanks for your help,<br><font color="#888888">
Henry</font><div><div></div><div class="h5"><br>
<br>
<br>
<br>
David Cole wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
If it's an open source project, point us to the source tree.<br>
<br>
If not, give us some example CMakeLists.txt files and dir structure that<br>
reproduces your problem.<br>
<br>
When you say CMake doesn't catch it, what exactly do you mean? (Post<br>
copy/pasted error output, perhaps.)<br>
<br>
We need more details to help you....<br>
<br>
<br>
On Wed, May 13, 2009 at 5:58 PM, Henry Johnson <<a href="mailto:misc@faradayco.com" target="_blank">misc@faradayco.com</a>> wrote:<br>
<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
Newbie here, trying to CMake a sourceforge project. Project is structured<br>
normally with main CMakeLists.txt at main directory and source for various<br>
executables in several subdirectories each with accompanying CMakeLists.txt.<br>
<br>
Problem is that none of the sub programs are included in the build. CMake<br>
appears to not be reading the CMakeLists.txt in the subdirectory.<br>
<br>
I've played around with it (quite a bit). If I purposely change the name<br>
of the subdirectory CMake flags an error. But if I put garbage text into<br>
the CMakeLists.txt inside the subdirectory or change its name CMake doesn't<br>
catch it.<br>
<br>
BTW, I've had some experience with CMake and it generally runs great, just<br>
can't get past this one...<br>
<br>
Thanks,<br>
<br>
Henry<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at:<br>
<a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
<br>
<br>
</blockquote>
<br>
<br>
</blockquote>
<br>
</div></div></blockquote></div><br>