summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-08-01 17:28:25 (GMT)
committerBrad King <brad.king@kitware.com>2018-08-01 17:28:45 (GMT)
commit10d6c3a635fbcf84871dce3351156890ce566d1c (patch)
tree850cef37682e0343fbf4225628243f3d7c95b2f6
parentf0e82ce9a2f50e7ce0b9b95dcf32e47ce9a08369 (diff)
downloadCMake-10d6c3a635fbcf84871dce3351156890ce566d1c.zip
CMake-10d6c3a635fbcf84871dce3351156890ce566d1c.tar.gz
CMake-10d6c3a635fbcf84871dce3351156890ce566d1c.tar.bz2
NAG: Pass response files through front-end to the linker
The `nagfor` compiler front-end does not support the `@rspfile` syntax. Use `-Wl,@rspfile` instead to pass it through to the linker. Fixes: #18232
-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 39aae18..9973feb 100644
--- a/Modules/Compiler/NAG-Fortran.cmake
+++ b/Modules/Compiler/NAG-Fortran.cmake
@@ -34,3 +34,4 @@ 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")
+set(CMAKE_Fortran_RESPONSE_FILE_LINK_FLAG "-Wl,@")