MantisBT - CMake
View Issue Details
0015117CMake(No Category)public2014-08-29 16:402015-03-02 08:57
Greg Sharp 
Brad King 
normalminorhave not tried
closedfixed 
 
CMake 3.1CMake 3.1 
0015117: InstallRequiredSystemLibraries does not install OpenMP library on MSVC
Programs compiled with MSVC which use OpenMP require the vcomp${ver}.dll runtime library. The Module InstallRequiredSystemLibraries.cmake is normally responsible for adding needed libraries (such as C runtime library) to install targets. However, it misses the OpenMP libraries.
A web search reveals many reports of this issue, and various workarounds. For example:

http://www.cmake.org/pipermail/cmake/2012-September/051964.html [^]
http://gmt.soest.hawaii.edu/issues/27 [^]
http://braintrekking.wordpress.com/2013/04/27/dll-hell-how-to-include-microsoft-redistributable-runtime-libraries-in-your-cmakecpack-project/ [^]

No tags attached.
patch 0001-Proposed-fix-for-0015117.patch (1,749) 2014-08-29 16:59
https://public.kitware.com/Bug/file/5237/0001-Proposed-fix-for-0015117.patch
Issue History
2014-08-29 16:40Greg SharpNew Issue
2014-08-29 16:59Greg SharpFile Added: 0001-Proposed-fix-for-0015117.patch
2014-08-29 17:00Greg SharpNote Added: 0036693
2014-09-02 11:06Brad KingNote Added: 0036699
2014-09-02 11:06Brad KingAssigned To => Brad King
2014-09-02 11:06Brad KingStatusnew => assigned
2014-09-02 11:06Brad KingTarget Version => CMake 3.1
2014-09-04 09:41Brad KingStatusassigned => resolved
2014-09-04 09:41Brad KingResolutionopen => fixed
2014-09-04 09:41Brad KingFixed in Version => CMake 3.1
2015-03-02 08:57Robert MaynardNote Added: 0038104
2015-03-02 08:57Robert MaynardStatusresolved => closed

Notes
(0036693)
Greg Sharp   
2014-08-29 17:00   
Proposed fix attached as patch.
(0036699)
Brad King   
2014-09-02 11:06   
Patch applied with minor tweaks, thanks:

InstallRequiredSystemLibraries: Install OpenMP runtime libs
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=bdb5007b [^]
(0038104)
Robert Maynard   
2015-03-02 08:57   
Closing resolved issues that have not been updated in more than 4 months.