SET(DEAL_II_USE_PETSC TRUE)
+ #
+ # Disable a bunch of warnings when compiling with petsc:
+ #
+ ENABLE_IF_SUPPORTED(CMAKE_CXX_FLAGS "-Wno-long-long")
+
+
#
# Work around a stupidity in PETSc that makes sure it interferes in
# a completely obnoxious way with boost.
)
FILE(APPEND
- ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/deal_ii_objects_${build_lowercase}
+ ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/deal_ii_objects_${build_lowercase}
"$<TARGET_OBJECTS:${library}.${build_lowercase}>\n"
)
ENDFOREACH()
)
FILE(APPEND
- ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/deal_ii_objects_${build_lowercase}
+ ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/deal_ii_objects_${build_lowercase}
"$<TARGET_OBJECTS:${library}.${build_lowercase}>\n"
)
ENDFOREACH()
LIST(APPEND DEAL_II_BUILD_TYPES "RELEASE")
ENDIF()
+#
+# TODO: Remove this hack.
+#
+FOREACH(build ${DEAL_II_BUILD_TYPES})
+ STRING(TOLOWER build_lowercase "${build}")
+ FILE(REMOVE
+ ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/deal_ii_objects_${build_lowercase}
+ )
+ENDFOREACH()
# Combine all ${build} OBJECT targets to a ${build} library:
#
FILE(STRINGS
- ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/deal_ii_objects_${build_lowercase}
+ ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/deal_ii_objects_${build_lowercase}
deal_ii_objects_${build_lowercase}
)
ADD_LIBRARY(${DEAL_II_BASE_NAME}${DEAL_II_${build}_SUFFIX}
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