[CMake] wxWidgets on Win32 (MSW)

Bill Hoffman bill.hoffman at kitware.com
Tue May 20 10:30:50 EDT 2008


Mathieu Malaterre wrote:
> Hi all,
> 
>   So here is the actual problem:
> 
>   FIND_PATH(wxWidgets_ROOT_DIR
>     NAMES include/wx/wx.h
>     PATHS
>       $ENV{wxWidgets_ROOT_DIR}
>       $ENV{WXWIN}
>       "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\wxWidgets_is1;Inno
> Setup: App Path]"  # WX 2.6.x
>       C:/
>       D:/
>       $ENV{ProgramFiles}
>     PATH_SUFFIXES
>       wxWidgets-2.8.7
>       wxWidgets
>     DOC "wxWidgets base/installation directory?"
>     )
> 
> -> returns /wxWidgets-2.8.7
> 
> while:
> 
>   FIND_PATH(wxWidgets_ROOT_DIR
>     NAMES include/wx/wx.h
>     PATHS
>       $ENV{wxWidgets_ROOT_DIR}
>       $ENV{WXWIN}
>       "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\wxWidgets_is1;Inno
> Setup: App Path]"  # WX 2.6.x
>       C:/
>       D:/
>       $ENV{ProgramFiles}
>     PATH_SUFFIXES
>       wxWidgets-2.8.7
>     DOC "wxWidgets base/installation directory?"
>     )
> 
> -> returns c:/wxWidgets-2.8.7
> 
> This is using the cmake 2.6.0 installer from cmake.org, and using the
> wx installer from 2.8.7 from the official wx web site.
> 
So, what did you change, just the PATH_SUFFIXES?

-Bill



More information about the CMake mailing list