From 0af7fe6c1943e6a9043e4e01c4bc9059108a6c98 Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Sat, 8 Aug 2020 17:34:38 -0400 Subject: [PATCH] fix: typo in pybind11_add_module (#2374) --- tools/pybind11Tools.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/pybind11Tools.cmake b/tools/pybind11Tools.cmake index 703c08d0..6e666957 100644 --- a/tools/pybind11Tools.cmake +++ b/tools/pybind11Tools.cmake @@ -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")