From b99728e9110e4ba4dc1d34e77fa3fffd7f381c2b Mon Sep 17 00:00:00 2001 From: Timo Koch Date: Fri, 29 Nov 2024 11:10:09 +0100 Subject: [PATCH] Correctly add GMP::gmp as transitive dependency in FindGMP.cmake --- cmake/Modules/FindGMP.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/Modules/FindGMP.cmake b/cmake/Modules/FindGMP.cmake index caeb6520774..3a7519bdf95 100644 --- a/cmake/Modules/FindGMP.cmake +++ b/cmake/Modules/FindGMP.cmake @@ -26,6 +26,6 @@ if(GMP_FOUND) set_target_properties(GMP::gmpxx PROPERTIES IMPORTED_LOCATION ${GMPXX_LIBRARY} INTERFACE_INCLUDE_DIRECTORIES ${GMPXX_INCLUDE_DIR} - TARGET_LINK_LIBRARIES GMP::gmp) + INTERFACE_LINK_LIBRARIES GMP::gmp) endif() endif()