mirror of
https://github.com/pybind/pybind11.git
synced 2026-03-14 20:27:47 +00:00
fix: typo in pybind11_add_module (#2374)
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user