[cmake-developers] OpenBSD specific patches

Brad King brad.king at kitware.com
Mon Dec 3 08:00:04 EST 2012


On 11/30/2012 04:54 PM, Amit Kulkarni wrote:
>> Thanks.  Please format this as a patch series that makes changes
>> in logical groups (possibly only one file each) and explains their
>> purpose in the commit messages.
> 
> a email sent to cmake-developers@ for each file touched with a commit message?

No, just please group the related changes that have a common explanation.
If two changes have different reasons then they belong as separate commits.
Then you can attach the entire patch series to one message if you want.

> A /usr/local/lib/qt3/bin/moc exists on my machine. I think that the
> OpenBSD environment (linker or libtool) takes care of it. David will
> confirm here. I notice all the FindQt3 patches are /usr/local.

This is an example of why we need commit messages to explain the changes.
>From reading the patch I have no idea why the path makes sense there.

> I am unfamiliar with PATH_SUFFIXES (and with CMake in general). I
> looked at FindBoost.cmake and FindGTK.cmake but they were all using
> PATH_SUFFIXES inside of find_path() whereas in the diff above it is
> inside a set(TCLTK_POSSIBLE_INCLUDE_PATHS). I am not sure how to
> proceed here.

The variable is used to consolidate options to later find_path calls.
The PATH_SUFFIXES option is documented in the command:

 http://www.cmake.org/cmake/help/v2.8.10/cmake.html#command:find_path

Anyway, I think you can go with the change you already have and
someone else can refactor the paths later.  This suggestion was about
a general improvement rather than just an OpenBSD port.

> Thanks, I removed the CACHE line.

Thanks.

-Brad



More information about the cmake-developers mailing list