Notes |
|
(0019096)
|
Brad King
|
2010-01-12 08:28
|
|
CMake is able to detect that the C compiler produces 64-bit binaries because it can do a try-compile with sizeof(void*) and encode the result in the binary using a combination of preprocessor and C initializer syntax. We'll need a totally different way to detect the Fortran binary type.
It looks like at least some Fortran compilers preprocess with _LP64 defined for 64-bit architectures. |
|
|
(0019098)
|
Brad King
|
2010-01-12 09:38
|
|
I've committed a fix that will work on at least some platforms, including Linux.
Detect Fortran ABI Information
/cvsroot/CMake/CMake/Modules/CMakeFortranCompiler.cmake.in,v <-- Modules/CMakeFortranCompiler.cmake.in
new revision: 1.15; previous revision: 1.14
/cvsroot/CMake/CMake/Modules/CMakeFortranCompilerABI.F,v <-- Modules/CMakeFortranCompilerABI.F
new revision: 1.2; previous revision: 1.1 |
|
|
(0020977)
|
Brad King
|
2010-06-10 14:59
|
|
|
|
(0020978)
|
Brad King
|
2010-06-10 15:03
|
|
Note for future investigation:
Fortran does not expose pointers in the language so we cannot detect their size with code. Preprocessor-based detection works only in some cases. We need a different approach. Perhaps we should try inspecting the binary produced by the compiler ("file a.out"). For ELF-based systems we can detect the binary type using cmELF. |
|
|
(0030529)
|
Brad King
|
2012-08-13 10:37
|
|
Sending issues I'm not actively working on to the backlog to await someone with time for them.
If an issue you care about is sent to the backlog when you feel it should have been addressed in a different manner, please bring it up on the CMake mailing list for discussion. Sign up for the mailing list here, if you're not already on it:
http://www.cmake.org/mailman/listinfo/cmake [^]
It's easy to re-activate a bug here if you can find a CMake developer or contributor who has the bandwidth to take it on.
|
|
|
(0041639)
|
Kitware Robot
|
2016-06-10 14:27
|
|
Resolving issue as `moved`.
This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page. |
|