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)
235235
236236 # Use case-insensitive comparison to match the result of $<CONFIG:cfgs>
237237 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)
239239 # Strip unnecessary sections of the binary on Linux/macOS
240240 pybind11_strip(${target_name} )
241241 endif ()
Original file line number Diff line number Diff line change @@ -214,7 +214,7 @@ function(pybind11_add_module target_name)
214214
215215 # Use case-insensitive comparison to match the result of $<CONFIG:cfgs>
216216 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)
218218 pybind11_strip(${target_name} )
219219 endif ()
220220
You can’t perform that action at this time.
0 commit comments