diff --git a/3rdparty/find_dependencies.cmake b/3rdparty/find_dependencies.cmake index 5baf5ec5aab..bf1889dbbe4 100644 --- a/3rdparty/find_dependencies.cmake +++ b/3rdparty/find_dependencies.cmake @@ -908,7 +908,8 @@ if(NOT USE_SYSTEM_CURL) # The "Foundation" framework is already linked by GLFW. target_link_libraries(3rdparty_curl INTERFACE "-framework SystemConfiguration") elseif(UNIX) - target_link_libraries(3rdparty_curl INTERFACE idn2) + find_library(LIBIDN2 NAMES idn2 libidn2 libidn2.so.0 ) + target_link_libraries(3rdparty_curl INTERFACE ${LIBIDN2}) endif() target_link_libraries(3rdparty_curl INTERFACE 3rdparty_openssl) endif()