MantisBT - CMake | ||||||||||
View Issue Details | ||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||
0010312 | CMake | Modules | public | 2010-02-19 08:45 | 2010-06-25 10:46 | |||||
Reporter | andreasm | |||||||||
Assigned To | Brad King | |||||||||
Priority | normal | Severity | major | Reproducibility | always | |||||
Status | closed | Resolution | duplicate | |||||||
Platform | OS | OS Version | ||||||||
Product Version | CMake-2-8 | |||||||||
Target Version | Fixed in Version | |||||||||
Summary | 0010312: FindMPI.cmake fails for path name containing "-l" | |||||||||
Description | Using find_package(MPI) fails on a Linux machine, where the MPI installation is located in a directory containing the string "/mpi-libs/": CMake Error at [...]/cmake-2.8/Modules/FindMPI.cmake:277 (message): Unable to find MPI library ibs/[...]/include While parsing MPI_LINK_CMDLINE, FindMPI.cmake seems to assume anything after "-l" is a library name, even if no whitespace is preceeding the "-l". Similiar issues might arise with the treatment of "-L" and further compiler/linker option strings. | |||||||||
Steps To Reproduce | ||||||||||
Additional Information | A quick (and dirty) hack in FindMPI.cmake: 265c265 < string(REGEX MATCHALL "-l([^\" ]+|\"[^\"]+\")" MPI_LIBNAMES "${MPI_LINK_CMDLINE}") --- > string(REGEX MATCHALL " -l([^\" ]+|\"[^\"]+\")" MPI_LIBNAMES "${MPI_LINK_CMDLINE}") 271c271 < string(REGEX REPLACE "^-l" "" LIB ${LIB}) --- > string(REGEX REPLACE "^ -l" "" LIB ${LIB}) solves the issue my case. Of course, this is no acceptable patch yet. | |||||||||
Tags | No tags attached. | |||||||||
Relationships |
| |||||||||
Attached Files | ||||||||||
Issue History | ||||||||||
Date Modified | Username | Field | Change | |||||||
2010-02-19 08:45 | andreasm | New Issue | ||||||||
2010-02-22 17:38 | James Amundson | Note Added: 0019582 | ||||||||
2010-06-25 04:22 | Marcel Loose | Note Added: 0021165 | ||||||||
2010-06-25 10:09 | Bill Hoffman | Status | new => assigned | |||||||
2010-06-25 10:09 | Bill Hoffman | Assigned To | => Brad King | |||||||
2010-06-25 10:46 | Brad King | Status | assigned => closed | |||||||
2010-06-25 10:46 | Brad King | Resolution | open => duplicate | |||||||
2010-06-25 10:47 | Brad King | Relationship added | duplicate of 0009093 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|