summaryrefslogtreecommitdiffstats
path: root/Modules/Platform
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-06-14 19:10:39 (GMT)
committerBrad King <brad.king@kitware.com>2017-06-14 19:10:39 (GMT)
commit61c1848cdc88cc5d36b23d14d0721ba832739a58 (patch)
tree09dc7faf32e207f52368d4ceff8a401e63bce53e /Modules/Platform
parentdf1c187f2fdfa48bd36d770bac23f6503fd9b071 (diff)
parentba247ccabab05c0aad4fe7f56dd020bfa8ff4583 (diff)
downloadCMake-61c1848cdc88cc5d36b23d14d0721ba832739a58.zip
CMake-61c1848cdc88cc5d36b23d14d0721ba832739a58.tar.gz
CMake-61c1848cdc88cc5d36b23d14d0721ba832739a58.tar.bz2
Merge branch 'ipo-per-lang' into release-3.9
Diffstat (limited to 'Modules/Platform')
-rw-r--r--Modules/Platform/Linux-Intel.cmake8
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules/Platform/Linux-Intel.cmake b/Modules/Platform/Linux-Intel.cmake
index 6e2978a..ee9aac2 100644
--- a/Modules/Platform/Linux-Intel.cmake
+++ b/Modules/Platform/Linux-Intel.cmake
@@ -30,7 +30,7 @@ macro(__linux_compiler_intel lang)
# executables that use dlopen but do not set ENABLE_EXPORTS.
set(CMAKE_SHARED_LIBRARY_LINK_${lang}_FLAGS "-rdynamic")
- set(_CMAKE_IPO_SUPPORTED_BY_CMAKE YES)
+ set(_CMAKE_${lang}_IPO_SUPPORTED_BY_CMAKE YES)
if(XIAR)
# INTERPROCEDURAL_OPTIMIZATION
@@ -38,10 +38,10 @@ macro(__linux_compiler_intel lang)
set(CMAKE_${lang}_CREATE_STATIC_LIBRARY_IPO
"${XIAR} cr <TARGET> <LINK_FLAGS> <OBJECTS> "
"${XIAR} -s <TARGET> ")
- set(_CMAKE_IPO_MAY_BE_SUPPORTED_BY_COMPILER YES)
- set(_CMAKE_IPO_LEGACY_BEHAVIOR YES)
+ set(_CMAKE_${lang}_IPO_MAY_BE_SUPPORTED_BY_COMPILER YES)
+ set(_CMAKE_${lang}_IPO_LEGACY_BEHAVIOR YES)
else()
- set(_CMAKE_IPO_MAY_BE_SUPPORTED_BY_COMPILER NO)
+ set(_CMAKE_${lang}_IPO_MAY_BE_SUPPORTED_BY_COMPILER NO)
endif()
if(NOT CMAKE_${lang}_COMPILER_VERSION VERSION_LESS 12.0)