diff options
author | Sergey Sharybin <sergey@blender.org> | 2020-09-01 12:31:47 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey@blender.org> | 2020-09-01 12:31:47 +0300 |
commit | c2df6658ee9488f473cd5042c89ef6771ada6024 (patch) | |
tree | 7ff658da0c4e0168ec34947f570fa1306486c644 /build_files | |
parent | 114150e80c43eb2f3e7e0f70ec6e25e29cf28984 (diff) |
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.
Diffstat (limited to 'build_files')
-rw-r--r-- | build_files/cmake/Modules/FindGMP.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
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) |