summaryrefslogtreecommitdiffstats
path: root/Modules/Platform
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-03-22 12:51:54 (GMT)
committerKitware Robot <kwrobot@kitware.com>2017-03-22 12:51:59 (GMT)
commit56c39d88363b3a0518bde1569d18ef1bdbeb01e7 (patch)
tree14430d55136d7ef1b14395ce4123ed19864914a7 /Modules/Platform
parent53e2ef1bb4434081bedce3742105e378452c4c38 (diff)
parent6c8326749fccd37afd5343d926d650c87ecdfb9f (diff)
downloadCMake-56c39d88363b3a0518bde1569d18ef1bdbeb01e7.zip
CMake-56c39d88363b3a0518bde1569d18ef1bdbeb01e7.tar.gz
CMake-56c39d88363b3a0518bde1569d18ef1bdbeb01e7.tar.bz2
Merge topic 'add-CheckIPOSupported-module'
6c832674 Tests for 'CheckIPOSupported' module fdb2ba25 CheckIPOSupported: New module to check for compiler/cmake IPO support Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !558
Diffstat (limited to 'Modules/Platform')
-rw-r--r--Modules/Platform/Linux-Intel.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/Platform/Linux-Intel.cmake b/Modules/Platform/Linux-Intel.cmake
index 85a0772..45dc36f 100644
--- a/Modules/Platform/Linux-Intel.cmake
+++ b/Modules/Platform/Linux-Intel.cmake
@@ -30,12 +30,17 @@ 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)
+
if(XIAR)
# INTERPROCEDURAL_OPTIMIZATION
set(CMAKE_${lang}_COMPILE_OPTIONS_IPO -ipo)
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)
+ else()
+ set(_CMAKE_IPO_MAY_BE_SUPPORTED_BY_COMPILER NO)
endif()
if(NOT CMAKE_${lang}_COMPILER_VERSION VERSION_LESS 12.0)