summaryrefslogtreecommitdiff
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-01-24 10:34:53 -0500
committerBrad King <brad.king@kitware.com>2018-01-24 14:31:53 -0500
commitc4dc6485eb3bd51fdc88eee03218b9755c373282 (patch)
treea4ca3c8f7e62e39769eae44524643ef8a90c7bde /Modules
parente342e4100a597dc8a7f94c55409e619a4848754f (diff)
downloadcmake-c4dc6485eb3bd51fdc88eee03218b9755c373282.tar.gz
XL: Enable use of response files for includes and objects
The IBM XL compiler supports response files via `-qoptfile=<file>` instead of `@<file>`.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/Compiler/XL.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/Compiler/XL.cmake b/Modules/Compiler/XL.cmake
index 4783785708..e527a049eb 100644
--- a/Modules/Compiler/XL.cmake
+++ b/Modules/Compiler/XL.cmake
@@ -20,6 +20,8 @@ macro(__compiler_xl lang)
# Feature flags.
set(CMAKE_${lang}_VERBOSE_FLAG "-V")
set(CMAKE_${lang}_COMPILE_OPTIONS_PIC "-qpic")
+ set(CMAKE_${lang}_RESPONSE_FILE_FLAG "-qoptfile=")
+ set(CMAKE_${lang}_RESPONSE_FILE_LINK_FLAG "-qoptfile=")
string(APPEND CMAKE_${lang}_FLAGS_DEBUG_INIT " -g")
string(APPEND CMAKE_${lang}_FLAGS_RELEASE_INIT " -O")