CMakeLists.txt: link properly

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

View File

@ -59,7 +59,7 @@ link_directories (${libssl_LIBRARY_DIRS} ${jansson_LIBRARY_DIRS})
foreach (extra iconv dl rt)
find_library (extra_lib_${extra} ${extra})
if (extra_lib_${extra})
list (APPEND project_libraries ${extra})
list (APPEND project_libraries ${extra_lib_${extra}})
endif ()
endforeach ()