[llvm] r240181 - Try to fix generation of LLVMExports.cmake under Visual Studio.
Dan Liew
dan at su-root.co.uk
Fri Jun 19 14:50:27 PDT 2015
Author: delcypher
Date: Fri Jun 19 16:50:27 2015
New Revision: 240181
URL: http://llvm.org/viewvc/llvm-project?rev=240181&view=rev
Log:
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.
Modified:
llvm/trunk/lib/DebugInfo/PDB/CMakeLists.txt
Modified: llvm/trunk/lib/DebugInfo/PDB/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/DebugInfo/PDB/CMakeLists.txt?rev=240181&r1=240180&r2=240181&view=diff
==============================================================================
--- llvm/trunk/lib/DebugInfo/PDB/CMakeLists.txt (original)
+++ llvm/trunk/lib/DebugInfo/PDB/CMakeLists.txt Fri Jun 19 16:50:27 2015
@@ -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
More information about the llvm-commits
mailing list