fix: typo in pybind11_add_module (#2374)

This commit is contained in:
Henry Schreiner 2020-08-08 17:34:38 -04:00 committed by GitHub
parent 227170dc2f
commit 0af7fe6c19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -132,7 +132,7 @@ endfunction()
# #
function(pybind11_add_module target_name) function(pybind11_add_module target_name)
set(options MODULE SHARED EXCLUDE_FROM_ALL NO_EXTRAS SYSTEM THIN_LTO) set(options MODULE SHARED EXCLUDE_FROM_ALL NO_EXTRAS SYSTEM THIN_LTO)
cmake_parse_arguments(PARSE_ARGV 2 ARG "${options}" "" "") cmake_parse_arguments(PARSE_ARGV 1 ARG "${options}" "" "")
if(ARG_MODULE AND ARG_SHARED) if(ARG_MODULE AND ARG_SHARED)
message(FATAL_ERROR "Can't be both MODULE and SHARED") message(FATAL_ERROR "Can't be both MODULE and SHARED")