MantisBT - CMake
View Issue Details
0007467CMakeCMakepublic2008-08-07 10:492008-11-28 16:25
Fernando Lemos 
Miguel Figueroa 
normalminoralways
closedfixed 
WIN32WindowsVista, 2000
CMake-2-6 
CMake-2-6 
0007467: FindwxWidgets.cmake shouldn't look for build.cfg
The file FindwxWidgets.cmake bundled with CMake 2.6.1 looks in WX_ROOT_DIR for msw/build.cfg or mswd/build.cfg. However, those files are not generated if wxWidgets has been compiled with Visual C++ (tested in both VS2005 and VS2008).
1. Compile wxWidgets with Visual Studio.
2. Try to use FIND_PACKAGE to look for wxWidgets and use REQUIRED.
3. It'll fail to locate wxWidgets.
CMake 2.4.8 shipped with a version of FindwxWidgets.cmake that didn't have that problem (it didn't look for build.cfg), so this might be considered a regression.
No tags attached.
zip vc_lib.zip (26,642) 2008-10-20 07:22
https://public.kitware.com/Bug/file/1785/vc_lib.zip
? FindwxWidgets.cmake (36,835) 2008-10-20 09:18
https://public.kitware.com/Bug/file/1786/FindwxWidgets.cmake
Issue History
2008-08-07 10:49Fernando LemosNew Issue
2008-08-19 13:54Bill HoffmanStatusnew => assigned
2008-08-19 13:54Bill HoffmanAssigned To => Miguel Figueroa
2008-10-19 20:53Miguel FigueroaNote Added: 0013901
2008-10-20 07:22Fernando LemosFile Added: vc_lib.zip
2008-10-20 07:26Fernando LemosNote Added: 0013903
2008-10-20 09:18Miguel FigueroaFile Added: FindwxWidgets.cmake
2008-10-20 09:21Miguel FigueroaNote Added: 0013904
2008-10-20 11:28Fernando LemosNote Added: 0013906
2008-10-20 18:45Miguel FigueroaNote Added: 0013917
2008-10-20 18:45Miguel FigueroaStatusassigned => resolved
2008-10-20 18:45Miguel FigueroaResolutionopen => fixed
2008-11-28 16:25Miguel FigueroaStatusresolved => closed
2008-11-28 16:25Miguel FigueroaFixed in Version => CMake-2-6

Notes
(0013901)
Miguel Figueroa   
2008-10-19 20:53   
Fernando,

I suppose you compile with VisualStudio as opposed to nmake. Does VisualStudio create any of these dirs?

wxWidgets/lib/vc_lib/msw
wxWidgets/lib/vc_lib/mswu
wxWidgets/lib/vc_lib/mswd
wxWidgets/lib/vc_lib/mswud

If so can you send me the contents of this directory? If not can you send me the contents of the wxWidgets/lib/vc_lib directory?

--Miguel
(0013903)
Fernando Lemos   
2008-10-20 07:26   
Hello,

Correct, I'm compiling it through the IDE, not using nmake directly.

Yes, VisualStudio creates these dirs. In my specific case, it did not create the mswu and mswud directories because I didn't compile wxWidgets with Unicode support.

I've attached a zip file containing /lib/vc_lib/msw and mswd.


TIA,
(0013904)
Miguel Figueroa   
2008-10-20 09:21   
Fernando,

Can you test the uploaded FindwxWidgets.cmake file? It should be a matter of simply replacing the current one with this one (backup the old one of course).

I believe that your problem should be addressed with this patch and I'll proceed to apply it to cmake cvs if you can confirm it.

Thanks,
--Miguel
(0013906)
Fernando Lemos   
2008-10-20 11:28   
Yes, that did the trick!

Thanks!
(0013917)
Miguel Figueroa   
2008-10-20 18:45   
Resolved in FindwxWidgets rev. 1.26