> On Tue, Sep 22, 2009 at 05:55:49PM +0200, [email protected] wrote: > > I have seen a thread about this issue but there was not a real > > solution, so I try to ask that again: Is there a way to define a > > specific CMakeLists.txt-file with a cmake call. > > Maybe you should post a link to the thread so we know what you're > talking about?
Yes, I should, but I read about 40 Threads through google and got completely lost. > > subdirs() is deprecated. Use add_subdirectory(). ok, thanks for the hint! > You can explicitly tell CMake the name of your list file with something > like cd build && cmake ../MyCMakeLists.myext. No!? CMake Error: The source directory [...]/MyCMakeLists.myext is a file, not a directory. > > You could let the CMakeLists in the data directory take care of subdir1 > and subdir3 and move the CMakeLists for subdir2 into subdir2. > > But basically I think your project organization seems broken and I would > try to fix it rather than hack around it. Sometimes you are in a bad position for things like that ;-). Convincing to use cmake is hard enough. - tom _______________________________________________ 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
