[CMake] wxWidgets on Win32 (MSW)
Mathieu Malaterre
mathieu.malaterre at gmail.com
Sat May 24 10:37:19 EDT 2008
Hum... I tried again today and I cannot reproduce it. So to properly
find wxWidgets on my machine I need to get rid of all entries in the
PATH_SUFFIXES section.
I would love to get rid it of that nasty bug before the next release
of cmake, so could the maintainer of wxWidgets stand up and tell me
what he/she was trying to do with:
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
...
)
Knowing that "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\wxWidgets_is1;Inno
Setup: App Path]" will return
c:\wxWidgets-2.8.7
This seems to be very different from the other search path, like
"c:/" or "d:/" (why in the world would you try to look in d: my
network drive...)
And *please* stop telling me that I need to set some env var before
running cmake, that defeat the whole purpose of system inspection and
reg entries, thanks.
Regards,
-Mathieu
On Tue, May 20, 2008 at 10:27 AM, Mathieu Malaterre
<mathieu.malaterre at gmail.com> 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.
>
> --
> Mathieu
>
--
Mathieu
More information about the CMake
mailing list