From c26ac223df45d67fcd7de664856fe7abf98d7935 Mon Sep 17 00:00:00 2001 From: Neil Carlson Date: Mon, 18 Feb 2013 13:10:35 -0500 Subject: NAG: Use -PIC for Fortran position-independent code (#13932) The Numerical Algorithms Group (NAG) Fortran compiler documents -PIC for position-independent code. --- Modules/Compiler/NAG-Fortran.cmake | 1 + 1 file changed, 1 insertion(+) 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") -- cgit v0.12