Index: llvm/lib/Support/CMakeLists.txt =================================================================== --- llvm/lib/Support/CMakeLists.txt +++ llvm/lib/Support/CMakeLists.txt @@ -76,7 +76,7 @@ # Link LibCURL if the user wants it if (LLVM_ENABLE_CURL) - set(system_libs ${system_libs} ${CURL_LIBRARIES}) + set(imported_libs ${imported_libs} CURL::libcurl) endif() # Override the C runtime allocator on Windows and embed it into LLVM tools & libraries