MantisBT - CMake
View Issue Details
0008954CMakeModulespublic2009-05-01 17:152016-06-10 14:30
Trent Lillehaugen 
Miguel Figueroa 
normalminoralways
closedmoved 
CMake-2-6 
 
0008954: Finding wxWidgets contrib modules is not supported in Windows
I was trying to use the wxWidgets module STC which is part of the "contrib" folder. My CMakeLists.txt file contained the following line:

find_package(wxWidgets REQUIRED stc core base)

However, when running CMake under Windows, I get the following error:

Could NOT find wxWidgets (missing: wxWidgets_FOUND)

It works correctly under Cygwin (I was told on the mailing list this is because the unix variants use wx-config)

The compiled contrib libraries can be found in the same directory as the included modules. In may case the live in:
...\wxWidgets-2.8.10\lib\vc_lib
The Header files are in:
...\wxWIdgets-2.8.10\contrib\include
No tags attached.
patch contrib.patch (1,109) 2009-05-05 12:09
https://public.kitware.com/Bug/file/2206/contrib.patch
? commit-36648cb (1,304) 2009-08-25 01:46
https://public.kitware.com/Bug/file/2422/commit-36648cb
patch wxwidgets_find_contrib_01.patch (1,294) 2009-08-25 02:15
https://public.kitware.com/Bug/file/2423/wxwidgets_find_contrib_01.patch
Issue History
2009-05-01 17:15Trent LillehaugenNew Issue
2009-05-02 16:18Miguel FigueroaStatusnew => assigned
2009-05-02 16:18Miguel FigueroaAssigned To => Miguel Figueroa
2009-05-05 12:09Trent LillehaugenFile Added: contrib.patch
2009-05-05 12:11Trent LillehaugenNote Added: 0016290
2009-07-18 10:42Philip LowmanCategoryCMake => Modules
2009-08-25 01:15gnu_lorienNote Added: 0017203
2009-08-25 01:46gnu_lorienFile Added: commit-36648cb
2009-08-25 01:47gnu_lorienNote Added: 0017204
2009-08-25 02:15gnu_lorienFile Added: wxwidgets_find_contrib_01.patch
2009-08-25 02:15gnu_lorienNote Added: 0017205
2010-03-07 03:55Miguel FigueroaRelationship addedduplicate of 0009775
2010-03-07 04:03Miguel FigueroaNote Added: 0019746
2010-03-07 13:45Miguel FigueroaRelationship deleted0009775
2010-03-08 14:33gnu_lorienNote Added: 0019761
2016-06-10 14:27Kitware RobotNote Added: 0041551
2016-06-10 14:27Kitware RobotStatusassigned => resolved
2016-06-10 14:27Kitware RobotResolutionopen => moved
2016-06-10 14:30Kitware RobotStatusresolved => closed

Notes
(0016290)
Trent Lillehaugen   
2009-05-05 12:11   
I've attached a patch that works for me. I have only added support for STC and am still new to CMake, but I hope it will help jump-start the official fix.
(0017203)
gnu_lorien   
2009-08-25 01:15   
There also needs to be a change to line 284 to include fl. It seems like this should actually generalized to hunt through all of the contrib code.
(0017204)
gnu_lorien   
2009-08-25 01:47   
This is a patch that will find all of the contrib libraries I am aware of.
Most importantly, it finds FL which happens to be the blocker for a project I use CMake for.
(0017205)
gnu_lorien   
2009-08-25 02:15   
Fixed up an incorrect include for the contrib libraries.
(0019746)
Miguel Figueroa   
2010-03-07 04:03   
I'm looking into your patch now. Could you provide an output of your directory structure (where is the include/lib dirs) with a full listing of the library dir?

Thanks,
--Miguel
(0019761)
gnu_lorien   
2010-03-08 14:33   
Unfortunately I can't. I have changed jobs and no longer have access to the source code repository where I was doing this work and I just don't remember the layout.
(0041551)
Kitware Robot   
2016-06-10 14:27   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.