solidity/cmake/FindGMP.cmake

9 lines
304 B
CMake
Raw Normal View History

2018-12-17 12:42:48 +00:00
find_library(GMP_LIBRARY NAMES gmp)
2018-04-06 16:01:40 +00:00
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(GMP DEFAULT_MSG GMP_LIBRARY)
2018-12-17 12:42:48 +00:00
if(GMP_FOUND AND NOT TARGET GMP::GMP)
add_library(GMP::GMP UNKNOWN IMPORTED)
set_property(TARGET GMP::GMP PROPERTY IMPORTED_LOCATION ${GMP_LIBRARY})
endif()