summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2008-04-21 22:26:09 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2008-04-21 22:26:09 (GMT)
commit20e9be907ff8dc238c91f87b23323ffdf3c072e1 (patch)
tree4a7e61732819db4f68fa92ed95e9fd3a5158fa07
parent21ad82a21b4e05262a126441da57115b29e1da18 (diff)
downloadCMake-20e9be907ff8dc238c91f87b23323ffdf3c072e1.zip
CMake-20e9be907ff8dc238c91f87b23323ffdf3c072e1.tar.gz
CMake-20e9be907ff8dc238c91f87b23323ffdf3c072e1.tar.bz2
ENH: use xiar for the intel compiler
-rw-r--r--Modules/Platform/Linux-icpc.cmake11
1 files changed, 11 insertions, 0 deletions
diff --git a/Modules/Platform/Linux-icpc.cmake b/Modules/Platform/Linux-icpc.cmake
index dc5bd43..2d1d879 100644
--- a/Modules/Platform/Linux-icpc.cmake
+++ b/Modules/Platform/Linux-icpc.cmake
@@ -10,3 +10,14 @@ SET (CMAKE_CXX_FLAGS_MINSIZEREL_INIT "-Os -DNDEBUG")
SET (CMAKE_CXX_FLAGS_RELEASE_INIT "-O3 -DNDEBUG")
SET (CMAKE_CXX_FLAGS_RELWITHDEBINFO_INIT "-O2 -g")
+FIND_PROGRAM(XIAR xiar)
+IF(XIAR)
+ SET(CMAKE_CXX_CREATE_STATIC_LIBRARY
+ "${XIAR} cr <TARGET> <LINK_FLAGS> <OBJECTS> "
+ "${XIAR} -s <TARGET> ")
+ SET(CMAKE_C_CREATE_STATIC_LIBRARY
+ "${XIAR} cr <TARGET> <LINK_FLAGS> <OBJECTS> "
+ "${XIAR} -s <TARGET> ")
+ENDIF(XIAR)
+MARK_AS_ADVANCED(XIAR)
+