From 119efc3cbb09907aec201f4f2e9ff59f7eb8905b Mon Sep 17 00:00:00 2001 From: maier Date: Sat, 13 Jul 2013 09:14:50 +0000 Subject: [PATCH] CMake: Cleanup git-svn-id: https://svn.dealii.org/trunk@29989 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/cmake/setup_compiler_flags_gnu.cmake | 2 -- deal.II/cmake/setup_compiler_flags_intel.cmake | 12 ++++++++++++ deal.II/cmake/setup_deal_ii.cmake | 2 +- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/deal.II/cmake/setup_compiler_flags_gnu.cmake b/deal.II/cmake/setup_compiler_flags_gnu.cmake index de5f551dd7..7f9c02deb9 100644 --- a/deal.II/cmake/setup_compiler_flags_gnu.cmake +++ b/deal.II/cmake/setup_compiler_flags_gnu.cmake @@ -100,8 +100,6 @@ IF(DEAL_II_STATIC_EXECUTABLE) # To produce a static executable, we have to statically link libstdc++ # and gcc's support libraries and glibc: # - # (Well... the name "DEAL_II_LINKER_FLAGS" is a bit misleading :-]) - # ENABLE_IF_SUPPORTED(DEAL_II_LINKER_FLAGS "-static") ENABLE_IF_SUPPORTED(DEAL_II_LINKER_FLAGS "-pthread") ENDIF() diff --git a/deal.II/cmake/setup_compiler_flags_intel.cmake b/deal.II/cmake/setup_compiler_flags_intel.cmake index 677e5174f4..495f4eadc5 100644 --- a/deal.II/cmake/setup_compiler_flags_intel.cmake +++ b/deal.II/cmake/setup_compiler_flags_intel.cmake @@ -80,6 +80,18 @@ ENABLE_IF_SUPPORTED(CMAKE_CXX_FLAGS "-wd1478") ENABLE_IF_SUPPORTED(CMAKE_CXX_FLAGS "-wd1572") +IF(DEAL_II_STATIC_EXECUTABLE) + # + # To produce a static executable, we have to statically link intel's + # support libraries: + # + ENABLE_IF_SUPPORTED(DEAL_II_LINKER_FLAGS "-static") + ENABLE_IF_SUPPORTED(DEAL_II_LINKER_FLAGS "-static-intel") + ENABLE_IF_SUPPORTED(DEAL_II_LINKER_FLAGS "-static-gcc") + ENABLE_IF_SUPPORTED(DEAL_II_LINKER_FLAGS "-pthread") +ENDIF() + + ############################# # # # For Release target: # diff --git a/deal.II/cmake/setup_deal_ii.cmake b/deal.II/cmake/setup_deal_ii.cmake index d517590f5d..4b3f6cdbb8 100644 --- a/deal.II/cmake/setup_deal_ii.cmake +++ b/deal.II/cmake/setup_deal_ii.cmake @@ -188,5 +188,5 @@ IF(CMAKE_CROSSCOMPILING) SET(DEAL_II_NATIVE "DEAL_II_NATIVE-NOTFOUND" CACHE FILEPATH "A pointer to a native deal.Ii build directory" ) - INCLUDE(${DEAL_II_NATIVE}/cmake/scripts//importExecutables.cmake) + INCLUDE(${DEAL_II_NATIVE}/cmake/scripts/importExecutables.cmake) ENDIF() -- 2.39.5