Skip to content

Commit 4f0727f

Browse files
authored
Fix the enabling of default extension handling (#2938)
1 parent 16c23fe commit 4f0727f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/pybind11NewTools.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ function(pybind11_add_module target_name)
230230
endif()
231231

232232
# If we don't pass a WITH_SOABI or WITHOUT_SOABI, use our own default handling of extensions
233-
if(NOT ARG_WITHOUT_SOABI OR NOT "WITH_SOABI" IN_LIST ARG_UNPARSED_ARGUMENTS)
233+
if(NOT ARG_WITHOUT_SOABI AND NOT "WITH_SOABI" IN_LIST ARG_UNPARSED_ARGUMENTS)
234234
pybind11_extension(${target_name})
235235
endif()
236236

0 commit comments

Comments
 (0)