[cmake-developers] [CMake 0011881]: FindMPI script violates policy CMP0004

Mantis Bug Tracker mantis at public.kitware.com
Sat Feb 19 04:19:51 EST 2011


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=11881 
====================================================================== 
Reported By:                Sameer Morar
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   11881
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2011-02-19 04:19 EST
Last Modified:              2011-02-19 04:19 EST
====================================================================== 
Summary:                    FindMPI script violates policy CMP0004
Description: 
The FindMPI script violates policy CMP0004. The following error occurs when
compiling the package dolfin in ubuntu 11.04:

CMake Error at CMakeLists.txt:9 (ADD_EXECUTABLE): 
Target "cmTryCompileExec" links to item " -Wl,--export-dynamic" which has
leading or trailing whitespace.
This is now an error according to policy CMP0004.

Further investigation has shown that " -Wl,--export-dynamic" is being assigned
to MPI_LINK_FLAGS with a leading space.
This occurs in /usr/share/cmake-2.8/Modules/FindMPI.cmake

The attached patch resolves this issue.

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-02-19 04:19 Sameer Morar   New Issue                                    
2011-02-19 04:19 Sameer Morar   File Added: FindMPI_CMP0004.patch               
    
======================================================================




More information about the cmake-developers mailing list