mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-22 13:15:12 +00:00
fix: typo in pybind11_add_module (#2374)
This commit is contained in:
parent
227170dc2f
commit
0af7fe6c19
@ -132,7 +132,7 @@ endfunction()
|
||||
#
|
||||
function(pybind11_add_module target_name)
|
||||
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)
|
||||
message(FATAL_ERROR "Can't be both MODULE and SHARED")
|
||||
|
Loading…
Reference in New Issue
Block a user