summaryrefslogtreecommitdiff
path: root/cmake/modules/FindGMPXX.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/modules/FindGMPXX.cmake')
-rw-r--r--cmake/modules/FindGMPXX.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmake/modules/FindGMPXX.cmake b/cmake/modules/FindGMPXX.cmake
index 277e4b19..dda302c0 100644
--- a/cmake/modules/FindGMPXX.cmake
+++ b/cmake/modules/FindGMPXX.cmake
@@ -33,6 +33,10 @@ if(GMP_FOUND)
DOC "Path to the GMPXX library"
)
+ if ( GMPXX_LIBRARIES )
+ get_filename_component(GMPXX_LIBRARIES_DIR ${GMPXX_LIBRARIES} PATH CACHE )
+ endif()
+
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(GMPXX "DEFAULT_MSG" GMPXX_LIBRARIES GMPXX_INCLUDE_DIR )