-
Notifications
You must be signed in to change notification settings - Fork 280
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add --use-ninja option to catkin_make(_isolated) to use ninja instead of make #693
Conversation
+1 there are two or three repeated if clauses for the makefile name and command line args, but at two instances the function method will not save lines, but if there's ever to be more, it might make sense to make them a function. |
@@ -133,11 +133,20 @@ def main(): | |||
print(fmt('@{yf}Packages @{boldon}"%s"@{boldoff} not found in the workspace - ignoring them' % ', '.join(sorted(unknown_packages))), file=sys.stderr) | |||
args.pkg = [name for name in args.pkg if name in packages_by_name] | |||
|
|||
if '-G' not in cmake_args: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it valid for an input to be ['-GFoo']
, which would cause this to fail? It seems to be possible:
% cmake -GXcode ..
-- The C compiler identification is AppleClang 6.0.0.6000054
-- The CXX compiler identification is AppleClang 6.0.0.6000054
-- Check for working C compiler using: Xcode
-- Check for working C compiler using: Xcode -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler using: Xcode
^C
Would it not be an error if you specify both a -G
argument in the cmake_args
and --use-ninja
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Both good points. Addressed in second commit.
+1 |
Squashed. |
add --use-ninja option to catkin_make(_isolated) to use ninja instead of make
@tfoote @wjwwood Please review.