Hi Brad,
it does not work - I get a message that the Fortran compiler
identification is unknown. Does CMake run the compiler with the
/fpp option? If not, then that is the cause (without there is
no particular macro defined)
Regards,
Arjen
On 2010-01-28 14:27, Brad King wrote:
Arjen Markus wrote:
If you turn on the preprocessor option, then a number of macros
are defined, the most useful being:
_DF_VERSION_=660 and _VF_VERSION_==660
Please try out the patch below (applies to CMake from CVS HEAD).
With it, CMake should recognize the Compaq compiler out of the box.
It won't know what flags to use without the compiler info files, but
at least it should report the compiler identification. If that works
for you I'll commit it upstream. Then we can work on the compiler
info files.
Thanks,
-Brad
diff --git a/Modules/CMakeFortranCompilerId.F.in
b/Modules/CMakeFortranCompilerId.F.in
index 107470c..a9aec76 100644
--- a/Modules/CMakeFortranCompilerId.F.in
+++ b/Modules/CMakeFortranCompilerId.F.in
@@ -10,6 +10,8 @@
PRINT *, 'INFO:compiler[G95]'
#elif defined(__PATHSCALE__)
PRINT *, 'INFO:compiler[PathScale]'
+#elif defined(_DF_VERSION_) || defined(_VF_VERSION_)
+ PRINT *, 'INFO:compiler[Compaq]'
#elif defined(__GNUC__)
PRINT *, 'INFO:compiler[GNU]'
#elif defined(__IBMC__)
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake