Fix strcasecmp detection

Our detection must include strings.h.
This commit is contained in:
Alex Mayfield 2018-06-03 10:50:32 -04:00
parent 9d815c5d43
commit 360da28234

View file

@ -46,9 +46,9 @@ endif()
find_package(m)
include(CheckFunctionExists)
check_function_exists(strcasecmp HAVE_DECL_STRCASECMP)
check_function_exists(strncasecmp HAVE_DECL_STRNCASECMP)
include(CheckSymbolExists)
check_symbol_exists(strcasecmp "strings.h" HAVE_DECL_STRCASECMP)
check_symbol_exists(strncasecmp "strings.h" HAVE_DECL_STRNCASECMP)
set(WINDOWS_RC_VERSION "${PROJECT_VERSION_MAJOR}, ${PROJECT_VERSION_MINOR}, ${PROJECT_VERSION_PATCH}, 0")