Run dos2unix against llvm-pdbdump.
[oota-llvm.git] / tools / llvm-pdbdump / CMakeLists.txt
1 set(MSVC_DIA_SDK_DIR "$ENV{VSINSTALLDIR}DIA SDK")
2
3 # Due to a bug in MSVC 2013's installation software, it is possible
4 # for MSVC 2013 to write the DIA SDK into the Visual Studio 2012
5 # install directory.  If this happens, the installation is corrupt
6 # and there's nothing we can do.  It happens with enough frequency
7 # though that we should handle it.  We do so by simply checking that
8 # the DIA SDK folder exists.  Should this happen you will need to
9 # uninstall VS 2012 and then re-install VS 2013.
10 if (IS_DIRECTORY ${MSVC_DIA_SDK_DIR})
11   set(LLVM_LINK_COMPONENTS
12     Support
13     )
14
15   include_directories(${MSVC_DIA_SDK_DIR}/include)
16   if (CMAKE_SIZEOF_VOID_P EQUAL 8)
17     link_directories(${MSVC_DIA_SDK_DIR}/lib/amd64)
18   else()
19     link_directories(${MSVC_DIA_SDK_DIR}/lib)
20   endif()
21
22   add_llvm_tool(llvm-pdbdump
23     llvm-pdbdump.cpp
24     DIAExtras.cpp
25     DIASymbol.cpp
26     )
27   target_link_libraries(llvm-pdbdump diaguids)
28 endif()