[Cmake] test target problems on Solaris 2.9
Stewart, Daniel J
daniel . j . stewart at boeing . com
Tue, 15 Jul 2003 16:10:32 -0700
Brad,
Yes, of course, thanks. Our workaround will be to rename the directory.
Dan
>Dan,
>
>> Assume I have the following directory tree:
>>
>> root ------> source ------> test
>>
>> Where all directories have a CMakeLists.txt file. If I use the ADD_TEST
>> command in the test directory's CMakeLists.txt, the command "make test"
>> will run when executed from either "root" or "test". However, if I run
>> it from "source", make echoes back "target test is up to date".
>
>Since your subdirectory under source is called "test", make sees it and
>thinks the "test" target is up to date (since there are no dependencies).
>GNU make provides a ".PHONY:" target that can be used to tell it to
>ignore any file/dir called "test", but that isn't portable to other makes.
>We're looking for work-arounds. Any ideas
>
>-Brad