[CMake] Problem with FindwxWidgets.cmake

Robert Dailey rcdailey at gmail.com
Tue Jan 27 12:35:02 EST 2009


Thanks for your response guys.

I ended up changing the NAMES argument to the respective find_path() call to
include mswu and mswud. This will work for the time being.

On Tue, Jan 27, 2009 at 8:41 AM, David Cole <david.cole at kitware.com> wrote:

> So you have two choices to get it to work with CMake 2.6.2: modify
> FindwxWidgets.cmake to look in the mswu directory, or set
> wxWidgets_LIB_DIR yourself before doing the wx find... Either one should
> get you one step further along.
> If it is also happening with CVS HEAD of CMake, then I would open an issue
> in the bug tracker against the FindwxWidgets.cmake module that says "cannot
> find the UNICODE wxWidgets_LIB_DIR because 'mswu' is not searched..."
>
>
> HTH,
> David
>
>
> On Mon, Jan 26, 2009 at 7:49 PM, Robert Dailey <rcdailey at gmail.com> wrote:
>
>> Hi,
>>
>> I'm currently using CMake 2.6.2 and the FindwxWidgets.cmake module that
>> comes pre-packaged with the installation doesn't seem to properly work on
>> windows. I set CMAKE_PREFIX_PATH so that it would be able to find the
>> wxWidgets in a custom location. It does find wxWidgets_ROOT_DIR, but does
>> not find wxWidgets_LIB_DIR. We are using a unicode build of wxWidgets on
>> Windows, and our lib directory looks like:
>>
>> ${wxWidgets_ROOT_DIR}/lib/mswu/wx/setup.h
>>
>> However, look at this snippet of code from FindwxWidgets.cmake:
>>
>>       FIND_PATH(wxWidgets_LIB_DIR
>>         NAMES msw/build.cfg mswd/build.cfg
>>         PATHS
>>         ${WX_ROOT_DIR}/lib/${WX_LIB_DIR_PREFIX}_dll   # prefer shared
>>         ${WX_ROOT_DIR}/lib/${WX_LIB_DIR_PREFIX}_lib
>>         DOC "Path to wxWidgets libraries?"
>>         NO_DEFAULT_PATH
>>         )
>>
>> Notice it is only checking in "msw" and not "mswu". Also, I do not have a
>> build.cfg file (I only keep relevant files inside my wxWidgets directory).
>> This file is enormous and complex, so I'm not even sure if this code is even
>> being used or if it matters.
>>
>> The output I'm getting from the GUI CMake tool is:
>>
>> CMake Error at C:/Program Files/CMake
>> 2.6/share/cmake-2.6/Modules/FindPackageHandleStandardArgs.cmake:57
>> (MESSAGE):
>>
>> Could NOT find wxWidgets (missing: wxWidgets_FOUND)
>>
>> Call Stack (most recent call first):
>>
>> C:/Program Files/CMake 2.6/share/cmake-2.6/Modules/FindwxWidgets.cmake:765
>> (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
>>
>> tools/tile_editor/CMakeLists.txt:1 (find_package)
>>
>> Can anyone help me figure out what is going on? This thing *should* be
>> simple to use! Thanks.
>>
>> _______________________________________________
>> CMake mailing list
>> CMake at cmake.org
>> http://www.cmake.org/mailman/listinfo/cmake
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090127/5f26bfae/attachment.htm>


More information about the CMake mailing list