Files
hatari/cmake/FindMath.cmake
Nicolas Pomarede 13dc63566a When using cmake >= 3.17, fix package name upper/lower cases used with find_package_handle_standard_args
Since version 3.17, cmake will display a warning if the package name Xxx given to find_package_handle_standard_args
does not match the name used in the cmake/FindXxx.cmake with the same upper/lower cases.
2020-03-30 15:26:34 +02:00

16 lines
385 B
CMake

if(MATH_INCLUDE_DIR)
# Already in cache, be silent
set(MATH_FIND_QUIETLY TRUE)
endif(MATH_INCLUDE_DIR)
find_path(MATH_INCLUDE_DIR math.h)
find_library(MATH_LIBRARY NAMES m)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(Math DEFAULT_MSG
MATH_LIBRARY MATH_INCLUDE_DIR)
mark_as_advanced(MATH_LIBRARY MATH_INCLUDE_DIR)