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 @@ -235,7 +235,7 @@ function(pybind11_add_module target_name)
235
235
236
236
# Use case-insensitive comparison to match the result of $<CONFIG:cfgs>
237
237
string (TOUPPER "${CMAKE_BUILD_TYPE} " uppercase_CMAKE_BUILD_TYPE )
238
- if (NOT MSVC AND NOT ${uppercase_CMAKE_BUILD_TYPE} MATCHES DEBUG|RELWITHDEBINFO )
238
+ if (NOT MSVC AND NOT " ${uppercase_CMAKE_BUILD_TYPE} " MATCHES DEBUG|RELWITHDEBINFO )
239
239
# Strip unnecessary sections of the binary on Linux/macOS
240
240
pybind11_strip (${target_name} )
241
241
endif ()
Original file line number Diff line number Diff line change @@ -214,7 +214,7 @@ function(pybind11_add_module target_name)
214
214
215
215
# Use case-insensitive comparison to match the result of $<CONFIG:cfgs>
216
216
string (TOUPPER "${CMAKE_BUILD_TYPE} " uppercase_CMAKE_BUILD_TYPE )
217
- if (NOT MSVC AND NOT ${uppercase_CMAKE_BUILD_TYPE} MATCHES DEBUG|RELWITHDEBINFO )
217
+ if (NOT MSVC AND NOT " ${uppercase_CMAKE_BUILD_TYPE} " MATCHES DEBUG|RELWITHDEBINFO )
218
218
pybind11_strip (${target_name} )
219
219
endif ()
220
220
You can’t perform that action at this time.
0 commit comments