Skip to content

Commit

Permalink
specify MSVC DIA path
Browse files Browse the repository at this point in the history
  • Loading branch information
js8544 committed Sep 24, 2022
1 parent 356e7f8 commit 93af741
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions cpp/src/gandiva/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,16 @@ endif()
set(GANDIVA_SHARED_LINK_LIBS arrow_shared LLVM::LLVM_HEADERS)
set(GANDIVA_SHARED_PRIVATE_LINK_LIBS LLVM::LLVM_LIBS ${GANDIVA_OPENSSL_TARGETS}
Boost::headers)
if(MSVC)
set(MSVC_DIA_SDK_DIR "$ENV{VSINSTALLDIR}DIA SDK")
if(IS_DIRECTORY ${MSVC_DIA_SDK_DIR})
set(GANDIVA_DIA_GUIDS_LIB "${MSVC_DIA_SDK_DIR}/lib/amd64/diaguids.lib")
string(REGEX REPLACE "\\\\" "\\\\\\\\" GANDIVA_DIA_GUIDS_LIB_ESCAPED
"${GANDIVA_DIA_GUIDS_LIB}")
list(APPEND GANDIVA_SHARED_PRIVATE_LINK_LIBS GANDIVA_DIA_GUIDS_LIB_ESCAPED)
endif()
endif()

set(GANDIVA_STATIC_LINK_LIBS
arrow_static
LLVM::LLVM_HEADERS
Expand Down

0 comments on commit 93af741

Please sign in to comment.