[Bf-blender-cvs] [c2df6658ee9] master: CMake: Fix linking errors with gmp library
Sergey Sharybin
noreply at git.blender.org
Tue Sep 1 11:38:41 CEST 2020
Commit: c2df6658ee9488f473cd5042c89ef6771ada6024
Author: Sergey Sharybin
Date: Tue Sep 1 11:31:47 2020 +0200
Branches: master
https://developer.blender.org/rBc2df6658ee9488f473cd5042c89ef6771ada6024
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.
===================================================================
M build_files/cmake/Modules/FindGMP.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)
More information about the Bf-blender-cvs
mailing list