diff options
author | Brad King <brad.king@kitware.com> | 2011-03-02 22:24:36 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2011-03-02 22:24:36 (GMT) |
commit | 5f0a25955faaa40b65eba072bd4a87e40dd82297 (patch) | |
tree | b295b0e7dfcbccd924fa5057622050c5d744845b /Modules/Platform/HP-UX-HP-Fortran.cmake | |
parent | f72cc88c659d586cc65ac47e7807054345ccad89 (diff) | |
download | CMake-5f0a25955faaa40b65eba072bd4a87e40dd82297.zip CMake-5f0a25955faaa40b65eba072bd4a87e40dd82297.tar.gz CMake-5f0a25955faaa40b65eba072bd4a87e40dd82297.tar.bz2 |
Factor HP compiler flags into per-platform/per-compiler files
Move HP flags out of Platform/HP-UX.cmake into platform-specific
compiler information files "Platform/HP-UX-HP-<lang>.cmake". Factor
common values into "Platform/HP-UX-HP.cmake" and load it from the
per-language files.
Diffstat (limited to 'Modules/Platform/HP-UX-HP-Fortran.cmake')
-rw-r--r-- | Modules/Platform/HP-UX-HP-Fortran.cmake | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Modules/Platform/HP-UX-HP-Fortran.cmake b/Modules/Platform/HP-UX-HP-Fortran.cmake new file mode 100644 index 0000000..5a3ab19 --- /dev/null +++ b/Modules/Platform/HP-UX-HP-Fortran.cmake @@ -0,0 +1,7 @@ +include(Platform/HP-UX-HP) +__hpux_compiler_hp(Fortran) + +set(CMAKE_SHARED_LIBRARY_CREATE_Fortran_FLAGS "-E -b -L/usr/lib") + +set(CMAKE_Fortran_CREATE_SHARED_LIBRARY + "ld <CMAKE_SHARED_LIBRARY_CREATE_Fortran_FLAGS> <CMAKE_SHARED_LIBRARY_SONAME_Fortran_FLAG><TARGET_SONAME> <LINK_FLAGS> -o <TARGET> <OBJECTS> <LINK_LIBRARIES>") |