summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler/NAG-Fortran.cmake
diff options
context:
space:
mode:
authorNeil Carlson <neil.n.carlson@gmail.com>2016-08-09 15:14:13 (GMT)
committerBrad King <brad.king@kitware.com>2016-08-09 15:15:14 (GMT)
commite9c984267e5539b798a2b1af8431e5715f261cfd (patch)
tree5bf78ef070d342cbbedf3d2084eb9e7cdb70dc60 /Modules/Compiler/NAG-Fortran.cmake
parent4689d16e8aa90e57a8456357251b6575131529d7 (diff)
downloadCMake-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/Compiler/NAG-Fortran.cmake')
-rw-r--r--Modules/Compiler/NAG-Fortran.cmake1
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")