Skip to content

Commit dff6fa0

Browse files
authored
fix(cmake): avoid issue with NVCC + Windows (#3947)
1 parent 1a7b129 commit dff6fa0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/pybind11Common.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ if(MSVC) # That's also clang-cl
9696
set_property(
9797
TARGET pybind11::windows_extras
9898
APPEND
99-
PROPERTY INTERFACE_COMPILE_OPTIONS /bigobj)
99+
PROPERTY INTERFACE_COMPILE_OPTIONS $<$<COMPILE_LANGUAGE:CXX>:/bigobj>)
100100

101101
# /MP enables multithreaded builds (relevant when there are many files) for MSVC
102102
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC") # no Clang no Intel

0 commit comments

Comments
 (0)