summaryrefslogtreecommitdiff
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-03-23 09:18:34 -0400
committerCMake Topic Stage <kwrobot@kitware.com>2015-03-23 09:18:34 -0400
commitd0af0207131b8436a2cf670265f815db511f441d (patch)
tree79582a3bfe66a97a02600e9c07c86e5b889e07aa /Modules
parent88abc78723bc955d44d83998e70d3b09d5dd4806 (diff)
parent3556fb1b81fccac63600a2509f92e9ef738fed69 (diff)
downloadcmake-d0af0207131b8436a2cf670265f815db511f441d.tar.gz
Merge topic 'SunPro-Fortran-KPIC'
3556fb1b SunPro: Add position independent code flag for Fortran compiler
Diffstat (limited to 'Modules')
-rw-r--r--Modules/Compiler/SunPro-Fortran.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/Compiler/SunPro-Fortran.cmake b/Modules/Compiler/SunPro-Fortran.cmake
index e4db1e8788..196aae49a1 100644
--- a/Modules/Compiler/SunPro-Fortran.cmake
+++ b/Modules/Compiler/SunPro-Fortran.cmake
@@ -2,6 +2,7 @@ set(CMAKE_Fortran_VERBOSE_FLAG "-v")
set(CMAKE_Fortran_FORMAT_FIXED_FLAG "-fixed")
set(CMAKE_Fortran_FORMAT_FREE_FLAG "-free")
+set(CMAKE_Fortran_COMPILE_OPTIONS_PIC "-KPIC")
set(CMAKE_SHARED_LIBRARY_Fortran_FLAGS "-KPIC")
set(CMAKE_SHARED_LIBRARY_CREATE_Fortran_FLAGS "-G")
set(CMAKE_SHARED_LIBRARY_RUNTIME_Fortran_FLAG "-R")