File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -307,7 +307,7 @@ function(pybind11_add_module target_name)
307307 if (DEFINED CMAKE_BUILD_TYPE ) # see https://github.com/pybind/pybind11/issues/4454
308308 # Use case-insensitive comparison to match the result of $<CONFIG:cfgs>
309309 string (TOUPPER "${CMAKE_BUILD_TYPE} " uppercase_CMAKE_BUILD_TYPE)
310- if (NOT MSVC AND NOT "${uppercase_CMAKE_BUILD_TYPE} " MATCHES DEBUG|RELWITHDEBINFO)
310+ if (NOT MSVC AND NOT "${uppercase_CMAKE_BUILD_TYPE} " MATCHES DEBUG|RELWITHDEBINFO|NONE )
311311 # Strip unnecessary sections of the binary on Linux/macOS
312312 pybind11_strip(${target_name} )
313313 endif ()
Original file line number Diff line number Diff line change @@ -196,7 +196,7 @@ function(pybind11_add_module target_name)
196196 if (DEFINED CMAKE_BUILD_TYPE ) # see https://github.com/pybind/pybind11/issues/4454
197197 # Use case-insensitive comparison to match the result of $<CONFIG:cfgs>
198198 string (TOUPPER "${CMAKE_BUILD_TYPE} " uppercase_CMAKE_BUILD_TYPE)
199- if (NOT MSVC AND NOT "${uppercase_CMAKE_BUILD_TYPE} " MATCHES DEBUG|RELWITHDEBINFO)
199+ if (NOT MSVC AND NOT "${uppercase_CMAKE_BUILD_TYPE} " MATCHES DEBUG|RELWITHDEBINFO|NONE )
200200 pybind11_strip(${target_name} )
201201 endif ()
202202 endif ()
You can’t perform that action at this time.
0 commit comments