diff options
author | Chris Robinson <[email protected]> | 2007-12-14 07:11:57 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2007-12-14 07:11:57 -0800 |
commit | 6a0f86a871342e8821076170c9384f50613d8cbb (patch) | |
tree | b39e3d04bb86b529894fe33267c0b31d548840dd | |
parent | db31706c1d7f7b98c3ca6d6b4a373ddffbc65ed4 (diff) |
Use CheckIncludeFiles for multi-include checks
-rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index ea6b0abc..9bd87c0f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,6 +3,7 @@ INCLUDE(CheckFunctionExists) INCLUDE(CheckLibraryExists) INCLUDE(CheckIncludeFile) +INCLUDE(CheckIncludeFiles) INCLUDE(CheckCCompilerFlag) INCLUDE(CheckCSourceCompiles) INCLUDE(CheckTypeSize) @@ -228,9 +229,7 @@ IF("${HAVE_WINDOWS_H}") ENDIF() ENDIF() IF(WINMM) - CHECK_C_SOURCE_COMPILES("\#include <windows.h> - \#include <mmsystem.h> - int main() {return 0;}" HAVE_MMSYSTEM_H) + CHECK_INCLUDE_FILES("windows.h;mmsystem.h" HAVE_MMSYSTEM_H) IF("${HAVE_MMSYSTEM_H}") SET(HAVE_WINMM 1) SET(ALC_OBJS ${ALC_OBJS} Alc/winmm.c) |