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
Bad flags for Fortran compiler #970
Comments
|
Do we even need to keep fortran support around anymore? On 2013.10.18 11.15, Hartmut Kaiser wrote:
Bryce Adelstein-Lelbach aka wash STE||AR Group, Center for Computation and Technology, LSU225-317-3866 - iPhone 225-578-6182 - Work (no voicemail)stellar.cct.lsu.edu cppnow.org |
In my case: Cactus supports Fortran. If we want to use HPX with Cactus, then there needs to be some official, supported way to make this happen. If add_hpx_executable is not that way, then e.g. using pkgconfig may work? |
I'll try to set it up so that add_hpx_executable works with fortran |
Ah, support for this already exists. Just add "LANGUAGE Fortran" to the add_hpx_executable statement. |
That's what I did. This doesn't remove the warnings. This is my CMakeLists.txt:
|
Unrelated note:
Please change your CMake file to use HPX_ROOT instead of HPX_DIR. That was probably caused by a documentation error which has been fixed in the meantime. Moreover, I'd suggest not to rely on environment setting, but that's a matter of choice and taste. CMake is not able to figure out whether an environment setting has been changed since last configured, so this might not pick up the latest settings. |
What Bryce meant, was to write:
|
I am using multiple languages, both C++ and Fortran. If I just add "LANGUAGE Fortran", then the C++ code doesn't build any more because "decltype" is not recognized. I assume that some vital C++ flags are then missing. Would "LANGUAGES CXX Fortran" be the correct syntax? I found some code in "HPX_CompilerFlags.cmake" that suggests this, but I'm not sure whether "LANGUAGES" is recognized as keyword or just ignored. |
It seems that "LANGUAGES" is not recognized. |
This:
should work, but I have not tried. |
No, I tried this as well. This leads to
|
Yes, you're right. I checked the |
Okay. If I can link via pkgconfig, then I don't need to use cmake. |
This should be fixed by ecdb034. Please reopen if the problem still persists. |
I added some Fortran code to my project. The Fortran compiler complains:
I am using "add_hpx_executable" for building.
The text was updated successfully, but these errors were encountered: