# 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()
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: #
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()
In the beginning the Universe was created. This has made a lot of
people very angry and has been widely regarded as a bad move.
Douglas Adams