From a3e1dde968fe8977d20f98a9ba4da43aaf1cd661 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Thu, 24 Apr 2008 21:54:13 -0400 Subject: [PATCH] ENH: support intel compiler on linux --- Modules/Platform/Linux-Intel-C.cmake | 13 +++++++++++++ .../{Linux-icpc.cmake => Linux-Intel-CXX.cmake} | 1 - 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 Modules/Platform/Linux-Intel-C.cmake rename Modules/Platform/{Linux-icpc.cmake => Linux-Intel-CXX.cmake} (99%) diff --git a/Modules/Platform/Linux-Intel-C.cmake b/Modules/Platform/Linux-Intel-C.cmake new file mode 100644 index 000000000..bde187e15 --- /dev/null +++ b/Modules/Platform/Linux-Intel-C.cmake @@ -0,0 +1,13 @@ +SET (CMAKE_C_FLAGS_INIT "") +SET (CMAKE_C_FLAGS_DEBUG_INIT "-g") +SET (CMAKE_C_FLAGS_MINSIZEREL_INIT "-Os -DNDEBUG") +SET (CMAKE_C_FLAGS_RELEASE_INIT "-O3 -DNDEBUG") +SET (CMAKE_C_FLAGS_RELWITHDEBINFO_INIT "-O2 -g") + +FIND_PROGRAM(XIAR xiar) +IF(XIAR) + SET(CMAKE_C_CREATE_STATIC_LIBRARY + "${XIAR} cr " + "${XIAR} -s ") +ENDIF(XIAR) +MARK_AS_ADVANCED(XIAR) diff --git a/Modules/Platform/Linux-icpc.cmake b/Modules/Platform/Linux-Intel-CXX.cmake similarity index 99% rename from Modules/Platform/Linux-icpc.cmake rename to Modules/Platform/Linux-Intel-CXX.cmake index 2d1d879dd..990a17d8a 100644 --- a/Modules/Platform/Linux-icpc.cmake +++ b/Modules/Platform/Linux-Intel-CXX.cmake @@ -20,4 +20,3 @@ IF(XIAR) "${XIAR} -s ") ENDIF(XIAR) MARK_AS_ADVANCED(XIAR) -