Skip to content

Commit

Permalink
test windows
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterJH5574 committed Nov 17, 2024
1 parent ebfe450 commit 6453904
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions cpp/pybind/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ endif()
find_package(Torch CONFIG REQUIRED)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TORCH_CXX_FLAGS}")
message(STATUS "CMAKE CXX FLAGS: ${CMAKE_CXX_FLAGS}")

find_library(TORCH_PYTHON_LIBRARY torch_python PATH "${TORCH_INSTALL_PREFIX}/lib")

Expand All @@ -59,10 +58,10 @@ set_target_properties(

if(MSVC)
file(GLOB TORCH_DLLS "${TORCH_INSTALL_PREFIX}/lib/*.dll")
add_custom_command(
TARGET xgrammar_bindings
POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different ${TORCH_DLLS}
$<TARGET_FILE_DIR:xgrammar_bindings>
)
# add_custom_command(
# TARGET xgrammar_bindings
# POST_BUILD
# COMMAND ${CMAKE_COMMAND} -E copy_if_different ${TORCH_DLLS}
# $<TARGET_FILE_DIR:xgrammar_bindings>
# )
endif(MSVC)

0 comments on commit 6453904

Please sign in to comment.