rename m_FOUND -> HAVE_LIBM

This commit is contained in:
Fabian Greffrath 2023-01-01 16:00:29 +01:00
parent 7bc9edebb6
commit a45ee95d57
3 changed files with 3 additions and 3 deletions

View File

@ -64,7 +64,7 @@ option("${PROJECT_NAME}_RANGECHECK" "Enable bounds-checking of performance-sensi
option("${PROJECT_NAME}_STRICT" "Prefer original MBF code paths over demo compatiblity with PrBoom+" OFF)
# Compiler environment requirements.
check_library_exists(m pow "" m_FOUND)
check_library_exists(m pow "" HAVE_LIBM)
check_include_file("dirent.h" HAVE_DIRENT_H)
check_symbol_exists(strsignal "string.h" HAVE_STRSIGNAL)
check_symbol_exists(strcasecmp "strings.h" HAVE_DECL_STRCASECMP)

View File

@ -2,7 +2,7 @@
#cmakedefine PROJECT_VERSION "@PROJECT_VERSION@"
#cmakedefine PROJECT_STRING "@PROJECT_STRING@"
#cmakedefine PROJECT_SHORTNAME "@PROJECT_SHORTNAME@"
#cmakedefine m_FOUND
#cmakedefine HAVE_LIBM
#cmakedefine HAVE_DIRENT_H
#cmakedefine HAVE_STRSIGNAL
#cmakedefine01 HAVE_DECL_STRCASECMP

View File

@ -133,7 +133,7 @@ if(WIN32)
endif()
# Some platforms require standard libraries to be linked against.
if(m_FOUND)
if(HAVE_LIBM)
list(APPEND WOOF_LIBRARIES m)
endif()