# #
###########################################################################
-#
-# Export DEAL_II_MSVC if we are on a Windows platform.
-#
IF(CMAKE_SYSTEM_NAME MATCHES "Windows")
+ #
+ # Export DEAL_II_MSVC if we are on a Windows platform:
+ #
SET(DEAL_II_MSVC TRUE)
+
+ #
+ # Disable -ggdb and -g on Windows/MinGW targets for the moment until the
+ # compilation issues with too big files is resolved
+ #
+ # - Matthias Maier, 2012
+ #
+ STRIP_FLAG(DEAL_II_CXX_FLAGS_DEBUG "-ggdb")
+ STRIP_FLAG(DEAL_II_SHARED_LINKER_FLAGS_DEBUG "-ggdb")
+ STRIP_FLAG(DEAL_II_CXX_FLAGS_DEBUG "-g")
+ STRIP_FLAG(DEAL_II_SHARED_LINKER_FLAGS_DEBUG "-g")
ENDIF()
${DEAL_II_USER_DEFINITIONS_${build}}
)
-
FOREACH(_lib
${MAKEFILE_LIBRARY_${build}}
${DEAL_II_EXTERNAL_LIBRARIES}
COND_SET_TO_YES(DEAL_II_WITH_P4EST MAKEFILE_P4EST)
COND_SET_TO_YES(DEAL_II_WITH_MPI MAKEFILE_MPI)
-
CONFIGURE_FILE(
${CMAKE_CURRENT_SOURCE_DIR}/Make.global_options.in
${CMAKE_CURRENT_BINARY_DIR}/Make.global_options
ADD_FLAGS(DEAL_II_CXX_FLAGS_DEBUG "-O0")
+ ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS_DEBUG "-ggdb")
+ ENABLE_IF_SUPPORTED(DEAL_II_SHARED_LINKER_FLAGS_DEBUG "-ggdb")
#
- # Disable -ggdb and -g on Windows/MinGW targets for the moment until the
- # compilation issues with too big files is resolved
+ # If -ggdb is not available, fall back to -g:
#
- # - Matthias Maier, 2012
- #
- IF(NOT CMAKE_SYSTEM_NAME MATCHES "Windows")
- ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS_DEBUG "-ggdb")
- ENABLE_IF_SUPPORTED(DEAL_II_SHARED_LINKER_FLAGS_DEBUG "-ggdb")
- #
- # If -ggdb is not available, fall back to -g:
- #
- IF(NOT DEAL_II_HAVE_FLAG_ggdb)
- ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS_DEBUG "-g")
- ENABLE_IF_SUPPORTED(DEAL_II_SHARED_LINKER_FLAGS_DEBUG "-g")
- ENDIF()
+ IF(NOT DEAL_II_HAVE_FLAG_ggdb)
+ ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS_DEBUG "-g")
+ ENABLE_IF_SUPPORTED(DEAL_II_SHARED_LINKER_FLAGS_DEBUG "-g")
ENDIF()
ENDIF()