diff options
author | Neil Carlson <neil.n.carlson@gmail.com> | 2013-02-18 18:10:35 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-02-18 18:12:50 (GMT) |
commit | c26ac223df45d67fcd7de664856fe7abf98d7935 (patch) | |
tree | 7ecd23de6fdc437109822140b83d56ba7b86cd1a /Modules/Compiler/NAG-Fortran.cmake | |
parent | a0ac2c59feec347a4cc93ab46fcf28f1dad49e99 (diff) | |
download | CMake-c26ac223df45d67fcd7de664856fe7abf98d7935.zip CMake-c26ac223df45d67fcd7de664856fe7abf98d7935.tar.gz CMake-c26ac223df45d67fcd7de664856fe7abf98d7935.tar.bz2 |
NAG: Use -PIC for Fortran position-independent code (#13932)
The Numerical Algorithms Group (NAG) Fortran compiler documents -PIC for
position-independent code.
Diffstat (limited to 'Modules/Compiler/NAG-Fortran.cmake')
-rw-r--r-- | Modules/Compiler/NAG-Fortran.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/Compiler/NAG-Fortran.cmake b/Modules/Compiler/NAG-Fortran.cmake index 9a89746..18f141e 100644 --- a/Modules/Compiler/NAG-Fortran.cmake +++ b/Modules/Compiler/NAG-Fortran.cmake @@ -32,3 +32,4 @@ set(CMAKE_Fortran_MODDIR_FLAG "-mdir ") set(CMAKE_SHARED_LIBRARY_Fortran_FLAGS "-PIC") set(CMAKE_Fortran_FORMAT_FIXED_FLAG "-fixed") set(CMAKE_Fortran_FORMAT_FREE_FLAG "-free") +set(CMAKE_Fortran_COMPILE_OPTIONS_PIC "-PIC") |