From 2eca4dd2d127ab8e7ba211a17139983bbef61802 Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 1 Sep 2009 13:55:13 -0400 Subject: [PATCH] Use Intel for Linux flags only on Linux The commit "Split Intel compiler information files" moved some Linux specific flags into the platform-independent Intel compiler info files. This moves them back. --- Modules/Compiler/Intel-C.cmake | 7 ------- Modules/Compiler/Intel-CXX.cmake | 7 ------- Modules/Compiler/Intel-Fortran.cmake | 14 -------------- Modules/Platform/Linux-Intel-C.cmake | 6 ++++++ Modules/Platform/Linux-Intel-CXX.cmake | 6 ++++++ Modules/Platform/Linux-Intel-Fortran.cmake | 13 +++++++++++++ .../Intel.cmake => Platform/Linux-Intel.cmake} | 0 7 files changed, 25 insertions(+), 28 deletions(-) create mode 100644 Modules/Platform/Linux-Intel-C.cmake create mode 100644 Modules/Platform/Linux-Intel-CXX.cmake rename Modules/{Compiler/Intel.cmake => Platform/Linux-Intel.cmake} (100%) diff --git a/Modules/Compiler/Intel-C.cmake b/Modules/Compiler/Intel-C.cmake index 57637b9234..8f8aaaa585 100644 --- a/Modules/Compiler/Intel-C.cmake +++ b/Modules/Compiler/Intel-C.cmake @@ -1,10 +1,3 @@ -INCLUDE(Compiler/Intel) -IF(XIAR) - SET(CMAKE_C_CREATE_STATIC_LIBRARY - "${XIAR} cr " - "${XIAR} -s ") -ENDIF(XIAR) - SET(CMAKE_C_VERBOSE_FLAG "-v") SET(CMAKE_C_FLAGS_INIT "") diff --git a/Modules/Compiler/Intel-CXX.cmake b/Modules/Compiler/Intel-CXX.cmake index d1ee60fc2c..56950f03e8 100644 --- a/Modules/Compiler/Intel-CXX.cmake +++ b/Modules/Compiler/Intel-CXX.cmake @@ -1,10 +1,3 @@ -INCLUDE(Compiler/Intel) -IF(XIAR) - SET(CMAKE_CXX_CREATE_STATIC_LIBRARY - "${XIAR} cr " - "${XIAR} -s ") -ENDIF(XIAR) - SET(CMAKE_CXX_VERBOSE_FLAG "-v") SET(CMAKE_CXX_FLAGS_INIT "") diff --git a/Modules/Compiler/Intel-Fortran.cmake b/Modules/Compiler/Intel-Fortran.cmake index f0db1a879f..f38b32e0e2 100644 --- a/Modules/Compiler/Intel-Fortran.cmake +++ b/Modules/Compiler/Intel-Fortran.cmake @@ -1,17 +1,3 @@ -INCLUDE(Compiler/Intel) -IF(XIAR) - SET(CMAKE_Fortran_CREATE_STATIC_LIBRARY - "${XIAR} cr " - "${XIAR} -s ") -ENDIF(XIAR) - -SET(CMAKE_SHARED_LIBRARY_Fortran_FLAGS "-fPIC") -SET(CMAKE_SHARED_LIBRARY_CREATE_Fortran_FLAGS "-shared") -SET(CMAKE_SHARED_LIBRARY_LINK_Fortran_FLAGS "-i_dynamic") -SET(CMAKE_SHARED_LIBRARY_RUNTIME_Fortran_FLAG "-Wl,-rpath,") -SET(CMAKE_SHARED_LIBRARY_RUNTIME_Fortran_FLAG_SEP ":") -SET(CMAKE_SHARED_LIBRARY_SONAME_Fortran_FLAG "-Wl,-soname,") - SET(CMAKE_Fortran_FLAGS_INIT "") SET(CMAKE_Fortran_FLAGS_DEBUG_INIT "-g") SET(CMAKE_Fortran_FLAGS_MINSIZEREL_INIT "-Os") diff --git a/Modules/Platform/Linux-Intel-C.cmake b/Modules/Platform/Linux-Intel-C.cmake new file mode 100644 index 0000000000..554945edf9 --- /dev/null +++ b/Modules/Platform/Linux-Intel-C.cmake @@ -0,0 +1,6 @@ +INCLUDE(Platform/Linux-Intel) +IF(XIAR) + SET(CMAKE_C_CREATE_STATIC_LIBRARY + "${XIAR} cr " + "${XIAR} -s ") +ENDIF(XIAR) diff --git a/Modules/Platform/Linux-Intel-CXX.cmake b/Modules/Platform/Linux-Intel-CXX.cmake new file mode 100644 index 0000000000..faa19e3e05 --- /dev/null +++ b/Modules/Platform/Linux-Intel-CXX.cmake @@ -0,0 +1,6 @@ +INCLUDE(Platform/Linux-Intel) +IF(XIAR) + SET(CMAKE_CXX_CREATE_STATIC_LIBRARY + "${XIAR} cr " + "${XIAR} -s ") +ENDIF(XIAR) diff --git a/Modules/Platform/Linux-Intel-Fortran.cmake b/Modules/Platform/Linux-Intel-Fortran.cmake index 266599e872..1db5ba6456 100644 --- a/Modules/Platform/Linux-Intel-Fortran.cmake +++ b/Modules/Platform/Linux-Intel-Fortran.cmake @@ -1 +1,14 @@ +INCLUDE(Platform/Linux-Intel) +IF(XIAR) + SET(CMAKE_Fortran_CREATE_STATIC_LIBRARY + "${XIAR} cr " + "${XIAR} -s ") +ENDIF(XIAR) + +SET(CMAKE_SHARED_LIBRARY_Fortran_FLAGS "-fPIC") +SET(CMAKE_SHARED_LIBRARY_CREATE_Fortran_FLAGS "-shared") +SET(CMAKE_SHARED_LIBRARY_LINK_Fortran_FLAGS "-i_dynamic") +SET(CMAKE_SHARED_LIBRARY_RUNTIME_Fortran_FLAG "-Wl,-rpath,") +SET(CMAKE_SHARED_LIBRARY_RUNTIME_Fortran_FLAG_SEP ":") +SET(CMAKE_SHARED_LIBRARY_SONAME_Fortran_FLAG "-Wl,-soname,") SET(CMAKE_DL_LIBS "dl") diff --git a/Modules/Compiler/Intel.cmake b/Modules/Platform/Linux-Intel.cmake similarity index 100% rename from Modules/Compiler/Intel.cmake rename to Modules/Platform/Linux-Intel.cmake