-
Notifications
You must be signed in to change notification settings - Fork 54
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
Can't seem to set up a top level CMakeLists.txt for the entire code gallery #133
Comments
I wouldn't expect in a CMake project that the compiler is inferred from any of the dependencies and specifying the compiler explicitly should still work. I am getting
|
Ah, interesting. Using Anyway, the next problem we run into is then this:
and many more of the same kind. |
Right. This would work better if we were to use a more CMake-native approach again. 🙂
|
Yes. Once @tamiko has this all in a stable state, that's what we may want to do with the tutorials first, and then also the code gallery... |
This might need @tamiko 's input:
I've gotten tired of configuring and compiling each code gallery program individually, so I tried to set up this
CMakeLists.txt
file in the top level of the code gallery:Interestingly, this does not work. When I create a build directory and call
cmake ..
from there, the output is the following:That is, it errors out while trying to identify a C++ compiler, which it takes from
/usr/bin
, but this is not the one I want it to use nor the one it should find via my$PATH
:It is also not the one it should inherit from the deal.II configuration system. (The specific error you see above is because I do `export CXXFLAGS=-std=c++20 which the system compiler predictably does not understand, it being GCC 4.8.)
Curiously, if I call cmake from the subdirectory into which I asked cmake to recurse (namely,
advection_reaction_estimator
), then this all works:How do we make this work? Or is setting up multiple deal.II-based projects at once just not supported?
The text was updated successfully, but these errors were encountered: