From 9349158d028540c36eab22b15cd24a26468d80fb Mon Sep 17 00:00:00 2001 From: Nicolas PLANEL Date: Thu, 11 Jun 2015 22:14:05 -0400 Subject: [PATCH] Add missing CXX check : HAVE_STRCASECMP, HAVE_STRNCASECMP on string.h This issue appear with clang++ -O1 -fsanitize=address compiler --- CMakeModules/PerformFeatureChecks.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeModules/PerformFeatureChecks.cmake b/CMakeModules/PerformFeatureChecks.cmake index b48cb0af60..02400468d9 100644 --- a/CMakeModules/PerformFeatureChecks.cmake +++ b/CMakeModules/PerformFeatureChecks.cmake @@ -83,6 +83,9 @@ macro( perform_feature_checks ) check_symbol_exists( strncasecmp "strings.h" HAVE_STRNCASECMP ) check_symbol_exists( strtok_r "string.h" HAVE_STRTOKR ) + check_cxx_symbol_exists( strcasecmp "string.h" HAVE_STRCASECMP ) + check_cxx_symbol_exists( strncasecmp "string.h" HAVE_STRNCASECMP ) + # Some platforms define malloc and free in malloc.h instead of stdlib.h. check_symbol_exists( malloc "stdlib.h" MALLOC_IN_STDLIB_H )