From 7b62aec0d32a1df8b14f8d2803e5576aecbf9b57 Mon Sep 17 00:00:00 2001 From: Dan Liew Date: Fri, 19 Jun 2015 21:50:27 +0000 Subject: [PATCH] Try to fix generation of LLVMExports.cmake under Visual Studio. If LLVMDebugInfoPDB links against the DIA SDK then the exports file would contain an INTERFACE_LINK_LIBRARIES property that contained an absolute path to ``diaguids.lib`` which used a native windows path (interpreted as escape sequences when LLVMExports.cmake is imported causing ``find_package(LLVM)`` to fail) rather than the correct CMake style path. llvm-svn: 240181 --- llvm/lib/DebugInfo/PDB/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/DebugInfo/PDB/CMakeLists.txt b/llvm/lib/DebugInfo/PDB/CMakeLists.txt index 68d3402..1645a95 100644 --- a/llvm/lib/DebugInfo/PDB/CMakeLists.txt +++ b/llvm/lib/DebugInfo/PDB/CMakeLists.txt @@ -9,7 +9,7 @@ if(HAVE_DIA_SDK) if (CMAKE_SIZEOF_VOID_P EQUAL 8) set(LIBPDB_LINK_FOLDERS "${LIBPDB_LINK_FOLDERS}\\amd64") endif() - set(LIBPDB_ADDITIONAL_LIBRARIES "${LIBPDB_LINK_FOLDERS}\\diaguids.lib") + file(TO_CMAKE_PATH "${LIBPDB_LINK_FOLDERS}\\diaguids.lib" LIBPDB_ADDITIONAL_LIBRARIES) add_pdb_impl_folder(DIA DIA/DIADataStream.cpp -- 2.7.4