From dff6fa0554bf6efe98a8da3f932b749cff4d76a8 Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Mon, 16 May 2022 23:45:54 -0400 Subject: [PATCH] fix(cmake): avoid issue with NVCC + Windows (#3947) --- tools/pybind11Common.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/pybind11Common.cmake b/tools/pybind11Common.cmake index bbb722ac..e1fb601a 100644 --- a/tools/pybind11Common.cmake +++ b/tools/pybind11Common.cmake @@ -96,7 +96,7 @@ if(MSVC) # That's also clang-cl set_property( TARGET pybind11::windows_extras APPEND - PROPERTY INTERFACE_COMPILE_OPTIONS /bigobj) + PROPERTY INTERFACE_COMPILE_OPTIONS $<$:/bigobj>) # /MP enables multithreaded builds (relevant when there are many files) for MSVC if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC") # no Clang no Intel