[CMake] CMake --debug-trycompile option breaking tests

Bill Hoffman bill.hoffman at kitware.com
Thu Sep 1 09:00:40 EDT 2011


On 9/1/2011 12:27 AM, Clifford Yapp wrote:
> On Wed, Aug 31, 2011 at 2:14 PM, Bill Hoffman<bill.hoffman at kitware.com>  wrote:
>>
>> It would make a mess if you created a sub-dir per test.  There would be lots
>> and lots of sub-dirs in some projects.
>
> Personally I would expect that, and be OK with it, as long as the
> directory names corresponded to the test in question - is the creation
> of large numbers of dirs a performance concern?
>
> Cheers,
> CY
>
I guess I have two concerns.

1. Windows is not good with lots of files/dirs (can be slow)

2. Naming and tracking these dirs maybe difficult giving the current api 
to try-compile/try-run.

If someone wants to try and implement this, it would most likely be a 
good thing if it can be done.  It would require lots of testing with big 
existing cmake builds like KDE,ParaView, ITK.

That said given the current API, you could have a project that does this 
in the cmake language today.  You just could not use some of the 
standard macros.

-Bill


More information about the CMake mailing list