diff --git a/Python/CMakeLists.txt b/Python/CMakeLists.txt index c274b66c..89fad579 100644 --- a/Python/CMakeLists.txt +++ b/Python/CMakeLists.txt @@ -34,7 +34,7 @@ pybind11_add_module( src/device.cpp ) -target_compile_options(pydirectml PRIVATE /W4 /WX) +target_compile_options(pydirectml PRIVATE /W4 /WX-) target_include_directories(pydirectml PRIVATE pybind11/include gpgmm/src/include gpgmm/ ${DML_PATH}/include ${DMLX_PATH}) target_link_directories(pydirectml PRIVATE ${DML_PATH}/bin/x64-win) target_link_libraries(pydirectml PRIVATE gpgmm dxgi.lib d3d12.lib directml.lib)