aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2007-12-14 07:11:57 -0800
committerChris Robinson <[email protected]>2007-12-14 07:11:57 -0800
commit6a0f86a871342e8821076170c9384f50613d8cbb (patch)
treeb39e3d04bb86b529894fe33267c0b31d548840dd
parentdb31706c1d7f7b98c3ca6d6b4a373ddffbc65ed4 (diff)
Use CheckIncludeFiles for multi-include checks
-rw-r--r--CMakeLists.txt5
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)