summaryrefslogtreecommitdiffstats
path: root/Modules/Platform/Linux-Intel-CXX.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/Platform/Linux-Intel-CXX.cmake')
-rw-r--r--Modules/Platform/Linux-Intel-CXX.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/Platform/Linux-Intel-CXX.cmake b/Modules/Platform/Linux-Intel-CXX.cmake
index faa19e3..cedb196 100644
--- a/Modules/Platform/Linux-Intel-CXX.cmake
+++ b/Modules/Platform/Linux-Intel-CXX.cmake
@@ -1,6 +1,8 @@
INCLUDE(Platform/Linux-Intel)
IF(XIAR)
- SET(CMAKE_CXX_CREATE_STATIC_LIBRARY
+ # INTERPROCEDURAL_OPTIMIZATION
+ SET(CMAKE_CXX_COMPILE_OPTIONS_IPO -ipo)
+ SET(CMAKE_CXX_CREATE_STATIC_LIBRARY_IPO
"${XIAR} cr <TARGET> <LINK_FLAGS> <OBJECTS> "
"${XIAR} -s <TARGET> ")
ENDIF(XIAR)