Closed ArmstrongJ closed 10 months ago
Pull Request #127 should fix this issue as well as eliminate the generation of _superluconfig.fh within the source tree when using CMake.
Fortran works for me on Linux with CMake. The header contains the #endif
. Probably a Windows issues. That's why it got unnoticed.
Anyway, should be fixed!
This should be resolved from #135
When I build with CMake and _-Denablefortran=YES, the build will fail with
The error stems from the steps to regenerate _superluconfig.fh. Specifically, the CMake-generate sed command in the Makefile:
Testing the sed command, you'll see that it specifically strips the line:
out of the file entirely since it has a C comment on it. The problem originates from FORTRAN/CMakeLists.txt:96 for reference.
Also, somewhat related, but generating a file in the source tree seems highly problematic as well. I would argue that _superluconfig.fh should really be generated in the build directory (probably in the FORTRAN subdirectory).