Hi Alex, Yes, I think this issue more or less covers what I want as well. In fact, I would like 'make check' to behave the same way as 'make test', which can also be invoked from any directory in the build tree. However, my 'make check' target also does a (re)compile of the test programs, whereas 'make test' only executes them.
I don't want to go down the path of creating Makefile only CMakeLists files, using ALLOW_DUPLICATE_CUSTOM_TARGETS, because at some time, we might start using IDE's like Eclipse or KDevelop. Best regards, Marcel Loose. On Mon, 2009-04-27 at 21:16 +0200, Alexander Neundorf wrote: > On Monday 27 April 2009, Marcel Loose wrote: > > Hi all, > > > > I was wondering whether it's possible to somehow redefine an existing > > target within a nested project. Let me give an example. > > > > Suppose my CMake project has the following structure > > > > bigproject > > subproject_1 > > subproject_2 > > > > where bigproject, subproject_1 and subproject_2 are all CMake projects > > (i.e., their CMakeLists.txt files all contain a project() command). > > > > Now, suppose there's some generic target (e.g. 'check') that I would > > like to be defined for each of these projects, such that I can do > > > > $ cd /path/to/build/directory/bigproject && make check > > > > but also > > > > $ cd /path/to/build/directory/bigproject/subproject_1 && make check > > > > Is this possible at all? > > Is it this issue ? > http://public.kitware.com/Bug/view.php?id=6348 > > Alex > _______________________________________________ > 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
