Browse Source

fix(cmake): avoid issue with NVCC + Windows (#3947)

pull/3959/head
Henry Schreiner 3 years ago committed by GitHub
parent
commit
dff6fa0554
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      tools/pybind11Common.cmake

2
tools/pybind11Common.cmake

@ -96,7 +96,7 @@ if(MSVC) # That's also clang-cl @@ -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 $<$<COMPILE_LANGUAGE:CXX>:/bigobj>)
# /MP enables multithreaded builds (relevant when there are many files) for MSVC
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC") # no Clang no Intel

Loading…
Cancel
Save