[CMake] FindxxWidgets.cmake: wrong wxWidgets_INCLUDE_DIRS on UNIX

Tyler Roscoe tyler at cryptio.net
Thu Jul 2 11:14:05 EDT 2009


On Thu, Jul 02, 2009 at 09:15:33AM +0200, Florent Teichteil wrote:
> I tried message(STATUS "${wxWidgets_INCLUDE_DIRS}") that adds a 
> semicolon between the paths. 

Right. In CMake, lists are just semicolon-delimited strings. When you
pass that variable to include_directories(), CMake will understand how
to handle it correctly.

> containing the line "#include <wx/wx.h>" gives the following error 
> message (in French): "erreur: wx/wx.h : Aucun fichier ou dossier de ce 
> type". It means that gcc can't find the <wx/wx.h> include file.

Is there a wx/wx.h underneath your wxwidgets include dir? Maybe you need
to just #include wx.h?

tyler


More information about the CMake mailing list