[cmake-developers] [CMake 0012916]: FindDCMTK.cmake leaving out oflog & bad ordering for Linux linker
Mantis Bug Tracker
mantis at public.kitware.com
Fri Jan 27 16:24:38 EST 2012
The following issue has been SUBMITTED.
======================================================================
http://www.cmake.org/Bug/view.php?id=12916
======================================================================
Reported By: kentwilliams
Assigned To:
======================================================================
Project: CMake
Issue ID: 12916
Category: CMake
Reproducibility: have not tried
Severity: major
Priority: normal
Status: new
======================================================================
Date Submitted: 2012-01-27 16:24 EST
Last Modified: 2012-01-27 16:24 EST
======================================================================
Summary: FindDCMTK.cmake leaving out oflog & bad ordering for
Linux linker
Description:
DCMTK has a library called 'oflog' that is needed by other DCMTK libraries. It
is left out of the list of libraries added to DCMTK_LIBRARIES in FindDCMTK.cmake
On Linux (RHEL6 at least) the linker is stupid, and unless DCMTK's ofstd library
is after oflog in the linker list, oflog can't find several symbols that live in
ofstd.
Steps to Reproduce:
Try to build a program that uses DCMTK
Additional Information:
Patch to fix:
*** /opt/cmake/share/cmake-2.8/Modules/FindDCMTK.cmake 2011-10-04
16:51:26.000000000 -0500
--- /raid0/homes/kent/FindDCMTK.cmake 2012-01-27 15:23:02.428630000 -0600
***************
*** 56,61 ****
--- 56,62 ----
ijg12
ijg16
ijg8
+ oflog
ofstd)
find_library(DCMTK_${lib}_LIBRARY
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2012-01-27 16:24 kentwilliams New Issue
======================================================================
More information about the cmake-developers
mailing list