-
Notifications
You must be signed in to change notification settings - Fork 5
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
Append to rather than set CXXFLAGS, etc. #242
Comments
Lines of this sort: EKAT/cmake/EkatSetCompilerFlags.cmake Line 36 in 34d2130
|
Never mind; this can't be it. CXXFLAGS is empty on entry to ekat/CMakeLists.txt. |
I think this might be an issue. Macros do not create new scopes, so using a very common name like CXXFLAGS in that macro will alter the value of a potential homonymous var at the call site. |
I confirmed that this is an issue. I put
at the top of scream's CMakeLists.txt, and printed its value at the bottom, where it showed |
Here:
EKAT/cmake/EkatSetCompilerFlags.cmake
Lines 127 to 133 in 34d2130
The text was updated successfully, but these errors were encountered: