[CMake] wxWidgets on Win32 (MSW)
Mathieu Malaterre
mathieu.malaterre at gmail.com
Tue May 20 11:07:50 EDT 2008
On Tue, May 20, 2008 at 4:30 PM, Bill Hoffman <bill.hoffman at kitware.com> wrote:
> 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?
I am just saying : run the two cmake code, you'll see that adding an
entry 'wxWidgets' in the PATH_SUFFIXES category makes the function
behave strangely (maybe it expect '.' or '-' to be found...). This is
easily reproducible using cmake 2.6.0.
HTH
--
Mathieu
More information about the CMake
mailing list