From c2df6658ee9488f473cd5042c89ef6771ada6024 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Tue, 1 Sep 2020 11:31:47 +0200 Subject: CMake: Fix linking errors with gmp library gmpxx library (C++ version of gmp) uses symbols from libgmp, which means the libgmp is to be passed to the linker after libgmpxx. --- build_files/cmake/Modules/FindGMP.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'build_files/cmake') diff --git a/build_files/cmake/Modules/FindGMP.cmake b/build_files/cmake/Modules/FindGMP.cmake index e1795984985..a06b8737648 100644 --- a/build_files/cmake/Modules/FindGMP.cmake +++ b/build_files/cmake/Modules/FindGMP.cmake @@ -80,7 +80,7 @@ FIND_PACKAGE_HANDLE_STANDARD_ARGS(GMP DEFAULT_MSG GMP_LIBRARY GMPXX_LIBRARY GMP_INCLUDE_DIR GMPXX_INCLUDE_DIR) IF(GMP_FOUND) - SET(GMP_LIBRARIES ${GMP_LIBRARY} ${GMPXX_LIBRARY}) + SET(GMP_LIBRARIES ${GMPXX_LIBRARY} ${GMP_LIBRARY}) SET(GMP_INCLUDE_DIRS ${GMP_INCLUDE_DIR} ${GMPXX_INCLUDE_DIR}) ENDIF(GMP_FOUND) -- cgit v1.2.3