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 ====================================================================== -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers