cmake/windows: Set LLVM_INCLUDE_DIRS variable.
authorRay Molenkamp <github@lazydodo.com>
Fri, 8 Mar 2019 14:17:56 +0000 (07:17 -0700)
committerRay Molenkamp <github@lazydodo.com>
Fri, 8 Mar 2019 14:18:17 +0000 (07:18 -0700)
build_files/cmake/platform/platform_win32.cmake

index 2c5294d..deb00bd 100644 (file)
@@ -430,6 +430,7 @@ endif()
 
 if(WITH_LLVM)
        set(LLVM_ROOT_DIR ${LIBDIR}/llvm CACHE PATH     "Path to the LLVM installation")
 
 if(WITH_LLVM)
        set(LLVM_ROOT_DIR ${LIBDIR}/llvm CACHE PATH     "Path to the LLVM installation")
+       set(LLVM_INCLUDE_DIRS ${LLVM_ROOT_DIR}/$<$<CONFIG:Debug>:Debug>/include CACHE PATH      "Path to the LLVM include directory")
        file(GLOB LLVM_LIBRARY_OPTIMIZED ${LLVM_ROOT_DIR}/lib/*.lib)
 
        if(EXISTS ${LLVM_ROOT_DIR}/debug/lib)
        file(GLOB LLVM_LIBRARY_OPTIMIZED ${LLVM_ROOT_DIR}/lib/*.lib)
 
        if(EXISTS ${LLVM_ROOT_DIR}/debug/lib)