Browse Source

also update pkg-config file generated by cmake

Signed-off-by: Steffen Jaeckel <[email protected]>
Steffen Jaeckel 2 years ago
parent
commit
5330cd1d9b
1 changed files with 2 additions and 0 deletions
  1. 2 0
      CMakeLists.txt

+ 2 - 0
CMakeLists.txt

@@ -136,6 +136,7 @@ if(WITH_LTM)
         target_compile_definitions(${PROJECT_NAME} PUBLIC USE_LTM)
         target_compile_definitions(${PROJECT_NAME} PUBLIC USE_LTM)
     endif()
     endif()
     target_link_libraries(${PROJECT_NAME} PUBLIC libtommath)
     target_link_libraries(${PROJECT_NAME} PUBLIC libtommath)
+    list(APPEND MPI_PROVIDERS -ltommath)
 endif()
 endif()
 # GNU MP
 # GNU MP
 if(WITH_GMP)
 if(WITH_GMP)
@@ -146,6 +147,7 @@ if(WITH_GMP)
         target_compile_definitions(${PROJECT_NAME} PUBLIC USE_GMP)
         target_compile_definitions(${PROJECT_NAME} PUBLIC USE_GMP)
     endif()
     endif()
     target_link_libraries(${PROJECT_NAME} PUBLIC ${GMP_LIBRARIES})
     target_link_libraries(${PROJECT_NAME} PUBLIC ${GMP_LIBRARIES})
+    list(APPEND MPI_PROVIDERS -lgmp)
 endif()
 endif()