-
Notifications
You must be signed in to change notification settings - Fork 62
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
cmake: remove a warning about scope #1468
base: master
Are you sure you want to change the base?
Conversation
NACL_TARGETS is set in Daemon's CMakeLists, but consumed by DaemonGame.cmake which is executed in the context of Unvanquished's CMakeLists. So I expect this to be needed for the variable to show up (including daemon with Probably the right thing to move the code seting NACL_TARGETS inside DaemonGame.cmake so we don't run this code for building gamelogic when only the engine is built. |
d6735a4
to
40dab6d
Compare
Ah, that may explain why I added that line back in the days. Is the new patch better? |
I mean move the entire block of code that builds the target list in there. |
40dab6d
to
1742f8d
Compare
OK, now it may be correct. |
@@ -200,4 +250,6 @@ function(GAMEMODULE) | |||
endforeach() | |||
endif() | |||
endif() | |||
|
|||
set(NACL_TARGETS "${NACL_TARGETS}" PARENT_SCOPE) |
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.
Now NACL_TARGETS is only used within this function, right? So it is not needed in another scope.
Remove this warning:
That lines look like a mistake, everything is either in the same scope, either passed through command line to the child cmake, there is nothing to bring up.