mirror of
https://github.com/libretro/hatari.git
synced 2026-11-07 10:36:00 -10:00
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.
16 lines
385 B
CMake
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)
|