The following issue has been SUBMITTED. ====================================================================== http://public.kitware.com/Bug/view.php?id=12629 ====================================================================== Reported By: Mark Abraham Assigned To: ====================================================================== Project: CMake Issue ID: 12629 Category: CMakeSetup Reproducibility: always Severity: minor Priority: normal Status: new ====================================================================== Date Submitted: 2011-12-15 19:28 EST Last Modified: 2011-12-15 19:28 EST ====================================================================== Summary: bootstrap of CMake can fail when a wrong libmd is found Description: Utilities/cmlibarchive/CMakeLists.txt uses
IF(CRYPTO_LIBRARY) LIST(APPEND ADDITIONAL_LIBS ${CRYPTO_LIBRARY}) ELSE(CRYPTO_LIBRARY) IF(NOT OPENSSL_FOUND) FIND_LIBRARY(MD_LIBRARY NAMES md) IF(MD_LIBRARY) LIST(APPEND ADDITIONAL_LIBS ${MD_LIBRARY}) ENDIF(MD_LIBRARY) ENDIF(NOT OPENSSL_FOUND) ENDIF(CRYPTO_LIBRARY) This fails if libmd exists in the search path but is actually from the GROMACS simulation package, rather than the crypto message digest library. A try_compile() test after a successful find_library() would allow the CMake bootstrap to be more robust. Steps to Reproduce: 1. Use ./bootstrap on a system with GROMACS (http://www.gromacs.org) installed and http://martin.hinner.info/libmd/ not installed. 2. Do make 3. Observe that CMake tools cannot link because of the unsatisfied dependencies of the inappropriate -lmd. Additional Information: I was able to successfully build CMake on this system by removing the resulting "-lmd" from all the links.txt files, using a combination of sed -i and find. ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2011-12-15 19:28 Mark Abraham 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