[CMake] wxWindows unexpectedly fails with error

Amitha Perera perera at cs.rpi.edu
Tue Jan 10 09:56:35 EST 2006


On Tue 10 Jan 2006, Jan Woetzel wrote:
> Amitha Perera wrote:
> >FindWxWindows.cmake fails with an error when the libraries are not
> >found under Windows. This defeats the purpose of WXWINDOWS_FOUND. Is
> >there a reason why this is?
>
> I suppose you are talking about the warnings in line 197, 242 or 375.
> 
> I added them to warn the user that the shared/static version he 
> explicitly "prefers" was not found.
> Maybe we should comment out those warning or at least change them from 
> "SEND_ERROR" to "STATUS".

Yes. One of the uses of this is to do conditional compilation: call
the script to figure out if WxWindows is available, and if so,
compile a particular library. If not, don't.

> However, if you use MS Windows with wx262 the script won't work.
> This one works with *monolithic* wx2.6.2 builds for me:
> http://www.mip.informatik.uni-kiel.de/~jw/cmake/CMakeModules/FindwxWindows.cmake

Thanks! We'll try it out.

Amitha.


More information about the CMake mailing list