From a40147abcecb87507c8b9f1007f3b53b324a660d Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Thu, 10 Jan 2008 10:50:46 -0500 Subject: ENH: add support for visual age fortran on linux --- Modules/CMakeFortranCompilerId.F90 | 2 +- Modules/Platform/Linux-VisualAge-C.cmake | 3 +++ Modules/Platform/Linux-VisualAge-Fortran.cmake | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 Modules/Platform/Linux-VisualAge-C.cmake create mode 100644 Modules/Platform/Linux-VisualAge-Fortran.cmake diff --git a/Modules/CMakeFortranCompilerId.F90 b/Modules/CMakeFortranCompilerId.F90 index 0f63a1a..8881313 100644 --- a/Modules/CMakeFortranCompilerId.F90 +++ b/Modules/CMakeFortranCompilerId.F90 @@ -11,7 +11,7 @@ PROGRAM CMakeFortranCompilerId ! This compiler is either not known or is too old to define an ! identification macro. Try to identify the platform and guess that ! it is the native compiler. -#elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__) +#elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__) || defined ( __IBM__ ) || defined ( __IBMC__ ) PRINT *, 'INFO:compiler[VisualAge]' #elif defined(__sgi) || defined(__sgi__) || defined(_SGI) PRINT *, 'INFO:compiler[MIPSpro]' diff --git a/Modules/Platform/Linux-VisualAge-C.cmake b/Modules/Platform/Linux-VisualAge-C.cmake new file mode 100644 index 0000000..62858ac --- /dev/null +++ b/Modules/Platform/Linux-VisualAge-C.cmake @@ -0,0 +1,3 @@ +SET(CMAKE_SHARED_LIBRARY_C_FLAGS "") +SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "") +message(" :::::::: here") diff --git a/Modules/Platform/Linux-VisualAge-Fortran.cmake b/Modules/Platform/Linux-VisualAge-Fortran.cmake new file mode 100644 index 0000000..295226b --- /dev/null +++ b/Modules/Platform/Linux-VisualAge-Fortran.cmake @@ -0,0 +1,2 @@ +SET(CMAKE_SHARED_LIBRARY_C_FLAGS "") +SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "") -- cgit v0.12