View Issue Details [ Jump to Notes ] | [ Print ] |
ID | Project | Category | View Status | Date Submitted | Last Update |
0006187 | CMake | Modules | public | 2007-12-19 21:56 | 2008-01-05 20:54 |
|
Reporter | Rodolfo Schulz de Lima | |
Assigned To | Miguel Figueroa | |
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | | |
|
Summary | 0006187: [PATCH] FindwxWidgets doesn't work when cross-compiling |
Description | The FindwxWidgets macro doesn't set up the right variables when doing a cross-compile. It ends up using the /usr/bin/wx-config instead of the one installed in a cross-compiled root (i.e /usr/i586-mingw32msvc/bin/wx-config), with the right flags.
I've created a patch to correct this. Please evaluate it and possibly commit to cvs. |
Tags | No tags attached. |
|
Attached Files | wxwidgets_crosscompile.diff [^] (603 bytes) 2007-12-19 21:56 [Show Content] [Hide Content]Index: FindwxWidgets.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/FindwxWidgets.cmake,v
retrieving revision 1.14
diff -r1.14 FindwxWidgets.cmake
632a633,639
>
> # Do the right thing when cross-compiling
> IF(CMAKE_FIND_ROOT_PATH)
> SET(_old_path_mode ${CMAKE_FIND_ROOT_PATH_MODE_PROGRAM})
> SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM ONLY)
> ENDIF(CMAKE_FIND_ROOT_PATH)
>
633a641,645
>
> if(_old_path_mode)
> SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM ${_old_path_mode})
> endif(_old_path_mode)
>
|
|