{"action":"opened","issue":{"url":"https://api.github.com/repos/ament/ament_tools/issues/84","repository_url":"https://api.github.com/repos/ament/ament_tools","labels_url":"https://api.github.com/repos/ament/ament_tools/issues/84/labels{/name}","comments_url":"https://api.github.com/repos/ament/ament_tools/issues/84/comments","events_url":"https://api.github.com/repos/ament/ament_tools/issues/84/events","html_url":"https://github.com/ament/ament_tools/issues/84","id":137264498,"number":84,"title":"Errors when using build_pkg/test_pkg","user":{"login":"dhood","id":5618076,"avatar_url":"https://avatars.githubusercontent.com/u/5618076?v=3","gravatar_id":"","url":"https://api.github.com/users/dhood","html_url":"https://github.com/dhood","followers_url":"https://api.github.com/users/dhood/followers","following_url":"https://api.github.com/users/dhood/following{/other_user}","gists_url":"https://api.github.com/users/dhood/gists{/gist_id}","starred_url":"https://api.github.com/users/dhood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhood/subscriptions","organizations_url":"https://api.github.com/users/dhood/orgs","repos_url":"https://api.github.com/users/dhood/repos","events_url":"https://api.github.com/users/dhood/events{/privacy}","received_events_url":"https://api.github.com/users/dhood/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-29T14:06:16Z","updated_at":"2016-02-29T14:06:16Z","closed_at":null,"body":"Whenever I try to use the build_pkg or test_pkg verbs on ament_cmake packages instead of build/test, I get the following error:\r\n```\r\n$ ament build_pkg .\r\n\r\nProcess package 'pendulum_msgs' with context:\r\n--------------------------------------------------------------------------------\r\n source_space => /Users/deanna/ros2_ws/src-master/ros2/demos/pendulum_msgs\r\n  build_space => /Users/deanna/ros2_ws/src-master/ros2/demos/pendulum_msgs/build/pendulum_msgs\r\ninstall_space => /Users/deanna/ros2_ws/src-master/ros2/demos/pendulum_msgs/install\r\n   make_flags => None\r\n  build_tests => False\r\n--------------------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/Users/deanna/ros2_ws/src-master/ament/ament_tools/install/bin/ament\", line 9, in <module>\r\n    load_entry_point('ament-tools==0.0.0', 'console_scripts', 'ament')()\r\n  File \"/Users/deanna/ros2_ws/src-master/ament/ament_tools/install/lib/python3.5/site-packages/ament_tools/commands/ament.py\", line 88, in main\r\n    rc = args.main(args)\r\n  File \"/Users/deanna/ros2_ws/src-master/ament/ament_tools/install/lib/python3.5/site-packages/ament_tools/verbs/build_pkg/cli.py\", line 270, in main\r\n    context = get_context(opts)\r\n  File \"/Users/deanna/ros2_ws/src-master/ament/ament_tools/install/lib/python3.5/site-packages/ament_tools/verbs/build_pkg/cli.py\", line 276, in get_context\r\n    return create_context(opts)\r\n  File \"/Users/deanna/ros2_ws/src-master/ament/ament_tools/install/lib/python3.5/site-packages/ament_tools/verbs/build_pkg/cli.py\", line 383, in create_context\r\n    ce = build_type_impl.extend_context(opts)\r\n  File \"/Users/deanna/ros2_ws/src-master/ament/ament_tools/install/lib/python3.5/site-packages/ament_tools/build_types/ament_cmake.py\", line 59, in extend_context\r\n    ce = super(AmentCmakeBuildType, self).extend_context(options)\r\n  File \"/Users/deanna/ros2_ws/src-master/ament/ament_tools/install/lib/python3.5/site-packages/ament_tools/build_types/cmake.py\", line 88, in extend_context\r\n    force_cmake_configure = options.force_cmake_configure\r\nAttributeError: 'Namespace' object has no attribute 'force_cmake_configure'\r\n```\r\n\r\nThis happens for me regardless of the options passed, but I think the fix might depend on the following:\r\nIs it expected that cmake options can be passed to ament_cmake packages when using `build_pkg`, as is possible with `build`?\r\n\r\nIf the answer's no, then I think it might be sufficient to provide default values for the cmake args to avoid the error [here](https://github.com/ament/ament_tools/blob/release-alpha4/ament_tools/build_types/cmake.py#L88)\r\n\r\nIf the answer's yes, then I think cmake args, in addition to the ament_cmake args, have to be added to the build_pkg subparser when an ament_cmake package is detected. (I made an attempt at this with https://github.com/ament/ament_tools/pull/81)"}}