Skip to content
Snippets Groups Projects
Commit d75c3a46 authored by Christoph Grüninger's avatar Christoph Grüninger
Browse files

[cleanup] Remove enable trick for GMP.

parent b63d7acb
Branches
Tags
No related merge requests found
......@@ -5,9 +5,6 @@ function(add_dune_gmp_flags _targets)
if(GMP_FOUND)
foreach(_target ${_targets})
target_link_libraries(${_target} ${GMP_LIBRARIES})
set_property(TARGET ${_target}
APPEND_STRING
PROPERTY COMPILE_FLAGS "-DENABLE_GMP=1 ")
foreach(_path ${GMP_INCLUDE_DIRS})
set_property(TARGET ${_target}
APPEND_STRING
......
......@@ -64,7 +64,6 @@ mark_as_advanced(GMP_LIB GMPXX_LIB GMP_INCLUDE_DIR)
if(GMP_FOUND)
set(GMP_INCLUDE_DIRS ${GMP_INCLUDE_DIR})
set(GMP_LIBRARIES ${GMP_LIB} ${GMPXX_LIB})
set(GMP_COMPILE_FLAGS "-DENABLE_GMP=1")
# log result
file(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeOutput.log
"Determing location of GMP succeded:\n"
......@@ -84,7 +83,6 @@ set(HAVE_GMP ${GMP_FOUND})
# register all GMP related flags
if(HAVE_GMP)
dune_register_package_flags(COMPILE_DEFINITIONS "ENABLE_GMP=1"
LIBRARIES "${GMP_LIB};${GMPXX_LIB}"
dune_register_package_flags(LIBRARIES "${GMP_LIB};${GMPXX_LIB}"
INCLUDE_DIRS "${GMP_INCLUDE_DIR}")
endif()
......@@ -43,9 +43,8 @@
deprecated MPI_CPPFLAGS) */
#cmakedefine HAVE_MPI ENABLE_MPI
/* Define if you have the GNU GMP library. The value should be ENABLE_GMP
to facilitate activating and deactivating GMP using compile flags. */
#cmakedefine HAVE_GMP ENABLE_GMP
/* Define to 1 if you have the GNU GMP library. */
#cmakedefine HAVE_GMP 1
/* Define to 1 if you have the symbol mprotect. */
#cmakedefine HAVE_MPROTECT 1
......
......@@ -28,7 +28,7 @@ namespace Dune {
// Specialization for the case of two equal types
// One should think that the generic template should handle this case as well.
// However, the fvectortest.cc unit test fails without it if ENABLE_GMP is set.
// However, the fvectortest.cc unit test fails without it if gmp is used.
template <typename T1>
struct PromotionTraits<T1,T1> { typedef T1 PromotedType; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment