[CMake] Found the cause - was: Re: Include path Tcl under Cygwin

marco atzeri marco.atzeri at gmail.com
Fri Jul 5 07:49:46 EDT 2013


Il 7/5/2013 9:48 AM, Arjen Markus ha scritto:
> On Thu, 4 Jul 2013 02:22:22 -0700 (PDT)
>   "Alan W. Irwin" <irwin at beluga.phys.uvic.ca> wrote:
>
>>
>> In a perfect world (assuming there is a well understood set of
>> standard locations for Cygwin system files, that CMake knows about
>> those when you are running on the Cygwin platform, _and_ that CMake
>> searches those locations before it searches the "raw" Windows system
>> locations) you would be correct.
> ...
>> And in my particular case (lots of packages that I want to use that
>> are often not installed in standard system locations) I use
>> CMAKE_INCLUDE_PATH, CMAKE_LIBRARY_PATH, and PATH extensively to give
>> CMake some guidance for where it finds software.
>>
>
> Well, it took me some time o realise what was the difference
> between my running CMake for the PLplot package and Marco's,
> but when I tried it with a minimal build set-up:
>
> set(PACKAGE testcygwin)
> include(FindTCL)
>
> I found that in this case it was finding the Tcl include
> files in the directory /usr/include. So I thought there was
> something odd going on in the PLplot set-up. Not quite
> impossible, because PLplot takes care of many programming
> languages, graphical options and libraries.
>
> But then I realised that I use the option CMAKE_LEGACY_CYGWIN_WIN32=ON

that option is for people looking for trouble .... ;-)

>
> Regards,
>
> Arjen

Marco



More information about the CMake mailing list