[cmake-developers] [CMake 0015928]: FindwxWidgets Fails

Mantis Bug Tracker mantis at public.kitware.com
Tue Jan 19 11:47:15 EST 2016


The following issue has been SUBMITTED. 
====================================================================== 
https://public.kitware.com/Bug/view.php?id=15928 
====================================================================== 
Reported By:                deaths_soul
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15928
Category:                   Modules
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2016-01-19 11:47 EST
Last Modified:              2016-01-19 11:47 EST
====================================================================== 
Summary:                    FindwxWidgets Fails
Description: 
When I try to use FindwxWidgets in CMake 3.4.1, I keep getting the following
error:
CMake Error at /usr/share/cmake/Modules/FindwxWidgets.cmake:870 (message):
   wxWidgets wx/version.h file not found in
  
/home/User/Code/wxWidgets/win_build32/lib/wx/include/i686-w64-mingw32-msw-unicode-static-3.0;/home/User/Code/wxWidgets/include.

Even though the file exists and I've even made a symlink in the other location
to make sure. In either case, I get that error. However, if I downgrade to CMake
3.3.2, everything works as it should.

The full path to wx/version.h is /home/User/Code/wxWidgets/include/wx/version.h.

In CMakeCache.txt, the _filename variable is set as follows:
_filename:FILEPATH=_filename-NOTFOUND

It's set to this value in both the CMakeCache.txt for 3.3.2 and 3.4.1. In
testing, I even deleted the working directory and started from a clean slate and
the issue still occurred with 3.4.1.

This is under Fedora 23 and cross-compiling using MinGW. The wxWidgets library
is self-compiled.

CMAKE_FIND_ROOT_PATH is set to usr/x86_64-w64-mingw32/sys-root/mingw or
/usr/i686-w64-mingw32/sys-root/mingw depending on which architecture I'm
building for. I use a mixture of libraries from the repos and self-built,
though.

CMAKE_FIND_ROOT_PATH_MODE_INCLUDE is set to ONLY.

Manually passing -D_filename=/home/User/Code/wxWidgets/include/wx/version.h when
I run the CMake configuration fixes the issue.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2016-01-19 11:47 deaths_soul    New Issue                                    
======================================================================



More information about the cmake-developers mailing list