Commit b94eb4e5 authored by Joe Snyder's avatar Joe Snyder
Browse files

drake mods

Local and will be trashed.
parent 9f912017
......@@ -57,7 +57,7 @@ function(autopybind11_add_module)
message(FATAL_ERROR "LINK_LIBRARIES must be specified")
endif()
if(NOT PYBIND_ADD_LIB_C_STD_FLAG)
set(PYBIND_ADD_LIB_C_STD_FLAG "-std=c++14")
set(PYBIND_ADD_LIB_C_STD_FLAG "-std=c++1z")
endif()
_autopybind11_get_sources(${PYBIND_ADD_LIB_NAME} JSON_INPUT ${PYBIND_ADD_LIB_JSON_INPUT}
DESTINATION ${PYBIND_ADD_LIB_DESTINATION}
......
......@@ -269,7 +269,7 @@ class BindingsGenerator:
# TODO: Need to find other enum types to use as examples.
enum_type = ""
for declaration in enum_data:
if declaration.decl_string == "::":
if declaration.decl_string == "::" or declaration.decl_string == declaration.parent.decl_string:
continue
enum_string += self.opts.enum_header_fmt.format(class_name=declaration.decl_string,
name=declaration.name,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment