From: Dan Liew Date: Fri, 19 Jun 2015 21:50:27 +0000 (+0000) Subject: Try to fix generation of LLVMExports.cmake under Visual Studio. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=9b3369eafc30e66b0444838ab9c6424747ab979f;p=oota-llvm.git 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240181 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/DebugInfo/PDB/CMakeLists.txt b/lib/DebugInfo/PDB/CMakeLists.txt index 68d3402c560..1645a95aac3 100644 --- a/lib/DebugInfo/PDB/CMakeLists.txt +++ b/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