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