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)
307
307
if (DEFINED CMAKE_BUILD_TYPE ) # see https://github.com/pybind/pybind11/issues/4454
308
308
# Use case-insensitive comparison to match the result of $<CONFIG:cfgs>
309
309
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 )
311
311
# Strip unnecessary sections of the binary on Linux/macOS
312
312
pybind11_strip (${target_name} )
313
313
endif ()
Original file line number Diff line number Diff line change @@ -196,7 +196,7 @@ function(pybind11_add_module target_name)
196
196
if (DEFINED CMAKE_BUILD_TYPE ) # see https://github.com/pybind/pybind11/issues/4454
197
197
# Use case-insensitive comparison to match the result of $<CONFIG:cfgs>
198
198
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 )
200
200
pybind11_strip (${target_name} )
201
201
endif ()
202
202
endif ()
You can’t perform that action at this time.
0 commit comments