[cmake-developers] Introduction and volunteering for the Matlab package

Brad King brad.king at kitware.com
Wed Jan 21 16:30:42 EST 2015


On 01/21/2015 12:01 PM, Raffi Enficiaud wrote:
> Ok. What do you think about mimicking the mex compiler in terms
> of options set to the compiler? The -Wl,--exclude-libs,ALL is in
> fact set by the mex compiler for compiling the mex extensions under
> Linux. Then I will just drop the REDUCE_VISIBILITY from the
> interface and add some doc about the "best practices" that work better.

I think suggesting it in the documentation is fine.  If some common
cross-platform solutions evolve then we can revisit adding official
support.

> But I have a quick question about the proper way of adding a test:
[snip]
> should fail because of a component lacking the the find_package option

The best place to put tests covering bad CMake code and error cases
is under the Tests/RunCMake infrastructure.  That allows explicit
matching of return codes and error messages.

Thanks,
-Brad



More information about the cmake-developers mailing list