CMakeLists.txt: link properly

This commit is contained in:
Přemysl Eric Janouch 2023-07-04 08:07:42 +02:00
parent e4eb61c9ee
commit f6646d787f
Signed by: p
GPG Key ID: A0420B94F92B9493
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ CHECK_FUNCTION_EXISTS ("resizeterm" HAVE_RESIZETERM)
foreach (extra iconv)
find_library (extra_lib_${extra} ${extra})
if (extra_lib_${extra})
list (APPEND project_libraries ${extra})
list (APPEND project_libraries ${extra_lib_${extra}})
endif ()
endforeach ()