X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Thu, 26 Jun 2008 12:24:52 -0400 To: cygwin AT cygwin DOT com Subject: Cmake 2.6 and the FindwxWidgets.cmake seems to use the wrong locating logic in Cygwin X-Mailer: Virtual Access Open Source http://www.virtual-access.org/ Message-Id: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit From: Brian Keener Reply-To: cygwin AT cygwin DOT com Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com I'm not sure if this should be posted here or if I should go upstream to cmake.org but I was compiling an application that uses cmake/ccmake and can be compiled on Windows/Linux/MingW/Cygwin and so on. Not a lot of folks try it on Cygwin so I have been stumbling over some of the issues. Anyways - one of its checks is to look for wxWidgets which I don't have and don't believe is a package for Cygwin anyways but cmake kept insisting it was on D:/wxWidgets....Some directory which appears to a default in the FindwxWidgets.cmake script. Digging deeper and googling for various info I found this in the script: #===================================================================== #===================================================================== IF(WIN32) SET(WIN32_STYLE_FIND 1) ENDIF(WIN32) IF(MINGW) SET(WIN32_STYLE_FIND 0) SET(UNIX_STYLE_FIND 1) ENDIF(MINGW) IF(UNIX) SET(UNIX_STYLE_FIND 1) ENDIF(UNIX) where apparently the STYLE_FIND variables control whether it searches (Win32/Registry) or uses the wxWidget config file (Unix). If I understand what I seem to have seen in config scripts for Cygwin before - in Cygwin both WIN32 and CYGWIN are set just as above it appears they are in MINGW. When I added this code: IF(CYGWIN) SET(WIN32_STYLE_FIND 0) SET(UNIX_STYLE_FIND 1) ENDIF(CYGWIN) right after the MINGW routine that stopped cmake from finding wxWidget or defaulting. Just thought I would pass this on for the cmake maintainer. bk -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/