]> granicus.if.org Git - graphviz/commitdiff
CMake: FindLTDL: remove useless misspelled name of libltdl
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Tue, 3 Aug 2021 14:03:11 +0000 (16:03 +0200)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Mon, 23 Aug 2021 19:39:48 +0000 (21:39 +0200)
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)."

cmake/FindLTDL.cmake

index 2afc42cd1fc7dd6fb9b1b061f485be188d36bdfc..b07571e3cf92916488b3aaaa38ac691be09f105d 100644 (file)
@@ -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)