From: Magnus Jacobsson Date: Tue, 3 Aug 2021 14:03:11 +0000 (+0200) Subject: CMake: FindLTDL: remove useless misspelled name of libltdl X-Git-Tag: 2.49.0~8^2~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=74534e203df205c1b9b2a9fdc2104b773d397f0d;p=graphviz CMake: FindLTDL: remove useless misspelled name of libltdl The name libtldl was clearly a misspelling of libltdl introduced already when this file was created in commit 3b567c4bd938e2e70478b22d5efae98bedf9ed8f. There's however no need to specify anything more then the ltdl name itself since CMake does this kind of magic automatically. From https://cmake.org/cmake/help/latest/command/find_library.html: "Each library name given to the NAMES option is first considered as a library file name and then considered with platform-specific prefixes (e.g. lib) and suffixes (e.g. .so)." --- diff --git a/cmake/FindLTDL.cmake b/cmake/FindLTDL.cmake index 2afc42cd1..b07571e3c 100644 --- a/cmake/FindLTDL.cmake +++ b/cmake/FindLTDL.cmake @@ -1,6 +1,6 @@ find_path(LTDL_INCLUDE_DIR ltdl.h) if (NOT WIN32) - find_library(LTDL_LIBRARY NAMES libtldl ltdl) + find_library(LTDL_LIBRARY NAMES ltdl) endif() include(FindPackageHandleStandardArgs)