MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0015002 | CMake | CMake | public | 2014-07-02 12:38 | 2016-06-10 14:31 |
Reporter | Olivier Trichet | ||||
Assigned To | Kitware Robot | ||||
Priority | low | Severity | minor | Reproducibility | always |
Status | closed | Resolution | moved | ||
Platform | OS | OS Version | |||
Product Version | CMake 2.8.12.1 | ||||
Target Version | Fixed in Version | ||||
Summary | 0015002: GetPrerequisites : fix objdump usage under non english locale | ||||
Description | While cross-compile from linux to win32, objdump is used by GetPrerequisites to find dependency dll. It runs : objdump -p some.exe | grep 'DLL Name:' Under non English locale, the output of objdump can be translated. Thus the matching on 'DLL Name:' does not work. The attached patch fix this issue. | ||||
Steps To Reproduce | 1) Create the CMakeLists.txt file with : include(GetPrerequisites) # Force the function 'get_prerequisites' to use objdump # (Avoid to setup a crosscompiling env unix -> win32) set(gp_tool "objdump") get_prerequisites("cmake-3.0.0-win32-x86.exe" DEPENDENCIES 0 1 "" "") message("Some dependencies should have been found: ${DEPENDENCIES}") 2) wget http://www.cmake.org/files/v3.0/cmake-3.0.0-win32-x86.exe [^] 3) Choose a non english locale from "locale -a" to to setup the variable LC_ALL 4) "LC_ALL=fr cmake ." => dependency dll not found without patch "LC_ALL=C cmake ." => dependency found | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | ![]() https://public.kitware.com/Bug/file/5183/0001-GetPrerequisites-ensure-objdump-output-is-not-locale.patch | ||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2014-07-02 12:38 | Olivier Trichet | New Issue | |||
2014-07-02 12:38 | Olivier Trichet | File Added: 0001-GetPrerequisites-ensure-objdump-output-is-not-locale.patch | |||
2014-07-02 14:16 | Brad King | Note Added: 0036310 | |||
2014-07-02 14:22 | Brad King | Note Added: 0036311 | |||
2016-06-10 14:29 | Kitware Robot | Note Added: 0042577 | |||
2016-06-10 14:29 | Kitware Robot | Status | new => resolved | ||
2016-06-10 14:29 | Kitware Robot | Resolution | open => moved | ||
2016-06-10 14:29 | Kitware Robot | Assigned To | => Kitware Robot | ||
2016-06-10 14:31 | Kitware Robot | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|