Skip to content
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

Fix CMake files #2246

Merged
merged 1 commit into from
Mar 31, 2014
Merged

Fix CMake files #2246

merged 1 commit into from
Mar 31, 2014

Conversation

Aatch
Copy link
Contributor

@Aatch Aatch commented Mar 30, 2014

Two issues fixed here:

  1. CMake treats variables in macros and functions differently, meaning that
    the unescaped ARGV wasn't actually the arguments to the macro, instead it
    was just an undefined variable.
  2. CMake has a special ARGN variable, in the same vein as ARGV. However, it
    contains all the arguments after the formal arguments, making the
    existing list(REMOVE_AT ARGV 0) pattern pointless.

Should fix #2237

cc @sgolemon

Two issues fixed here:

1. CMake treats variables in macros and functions differently, meaning that
   the unescaped ARGV wasn't actually the arguments to the macro, instead it
   was just an undefined variable.
2. CMake has a special ARGN variable, in the same vein as ARGV. However, it
   contains all the arguments *after* the formal arguments, making the
   existing `list(REMOVE_AT ARGV 0)` pattern pointless.

Should fix facebook#2237

cc @sgolemon
@reeze
Copy link
Contributor

reeze commented Mar 31, 2014

aha , now there are three PR: #2230 #2225

ptarjan added a commit that referenced this pull request Mar 31, 2014
@ptarjan ptarjan merged commit 7db68d8 into facebook:master Mar 31, 2014
This was referenced Mar 31, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ubuntu 13.10 | cmake error | -- Configuring incomplete, errors occurred!
4 participants