Index: tools/llvm-config/CMakeLists.txt =================================================================== --- tools/llvm-config/CMakeLists.txt +++ tools/llvm-config/CMakeLists.txt @@ -14,8 +14,8 @@ if(MSVC) set(SYSTEM_LIBS ${SYSTEM_LIBS} "${l}.lib") else() - if (l MATCHES "^-") - # If it's an option, pass it without changes. + if (l MATCHES "^[-/]") + # If it's an option, or an absolute pathname, pass it without changes. set(SYSTEM_LIBS ${SYSTEM_LIBS} "${l}") else() # Otherwise assume it's a library name we need to link with.