diff options
author | Neil Carlson <neil.n.carlson@gmail.com> | 2016-08-09 15:14:13 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-08-09 15:15:14 (GMT) |
commit | e9c984267e5539b798a2b1af8431e5715f261cfd (patch) | |
tree | 5bf78ef070d342cbbedf3d2084eb9e7cdb70dc60 /Modules | |
parent | 4689d16e8aa90e57a8456357251b6575131529d7 (diff) | |
download | CMake-e9c984267e5539b798a2b1af8431e5715f261cfd.zip CMake-e9c984267e5539b798a2b1af8431e5715f261cfd.tar.gz CMake-e9c984267e5539b798a2b1af8431e5715f261cfd.tar.bz2 |
NAG: Use -PIC for Fortran position-independent executable code
The Numerical Algorithms Group (NAG) Fortran compiler documents -PIC for
position-independent code and does not have a separate option for PIE.
We added `-PIC` for PIC in commit v2.8.11~174^2 (NAG: Use -PIC for
Fortran position-independent code, 2013-02-18). Follow up for PIE.
Closes: #16236
Diffstat (limited to 'Modules')
-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 18f141e..39aae18 100644 --- a/Modules/Compiler/NAG-Fortran.cmake +++ b/Modules/Compiler/NAG-Fortran.cmake @@ -33,3 +33,4 @@ 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") +set(CMAKE_Fortran_COMPILE_OPTIONS_PIE "-PIC") |