diff options
author | Chris Robinson <[email protected]> | 2007-12-14 07:01:56 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2007-12-14 07:01:56 -0800 |
commit | db31706c1d7f7b98c3ca6d6b4a373ddffbc65ed4 (patch) | |
tree | fd0cce460d325f34bb4e461065b211f6de311a6a | |
parent | ba0252661237768f0da2634271de3ce18f731ec2 (diff) |
Use CheckFunctionExists instead of abusing CheckLibraryExists
-rw-r--r-- | CMakeLists.txt | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index fc8e2c5b..ea6b0abc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,6 @@ # CMake build file list for OpenAL +INCLUDE(CheckFunctionExists) INCLUDE(CheckLibraryExists) INCLUDE(CheckIncludeFile) INCLUDE(CheckCCompilerFlag) @@ -99,11 +100,11 @@ ELSEIF(NODEBUG) ENDIF() CHECK_LIBRARY_EXISTS(m sqrtf "" HAVE_SQRTF) -CHECK_LIBRARY_EXISTS("" strtof "" HAVE_STRTOF) +CHECK_FUNCTION_EXISTS(strtof HAVE_STRTOF) -CHECK_LIBRARY_EXISTS("" strcasecmp "" HAVE_STRCASECMP) +CHECK_FUNCTION_EXISTS(strcasecmp HAVE_STRCASECMP) IF(NOT "${HAVE_STRCASECMP}") - CHECK_LIBRARY_EXISTS("" _stricmp "" HAVE__STRICMP) + CHECK_FUNCTION_EXISTS(_stricmp HAVE__STRICMP) IF(NOT "${HAVE__STRICMP}") MESSAGE(FATAL_ERROR "No case-insensitive compare function found, please report!") ENDIF() |