mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-11 08:03:55 +00:00
fix(cmake): avoid issue with NVCC + Windows (#3947)
This commit is contained in:
parent
1a7b12983e
commit
dff6fa0554
@ -96,7 +96,7 @@ if(MSVC) # That's also clang-cl
|
|||||||
set_property(
|
set_property(
|
||||||
TARGET pybind11::windows_extras
|
TARGET pybind11::windows_extras
|
||||||
APPEND
|
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
|
# /MP enables multithreaded builds (relevant when there are many files) for MSVC
|
||||||
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC") # no Clang no Intel
|
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC") # no Clang no Intel
|
||||||
|
Loading…
Reference in New Issue
Block a user