From 23778b05d69e56b1f6f57f8545159f4557343ba3 Mon Sep 17 00:00:00 2001 From: Pedro Lopez-Cabanillas Date: Sat, 10 Apr 2010 10:45:44 +0000 Subject: [PATCH] Check correctly "mmsystem.h" in Windows --- fluidsynth/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fluidsynth/CMakeLists.txt b/fluidsynth/CMakeLists.txt index cc66cac0..7cb1f93a 100644 --- a/fluidsynth/CMakeLists.txt +++ b/fluidsynth/CMakeLists.txt @@ -122,10 +122,11 @@ set ( WINDOWS_SUPPORT ) set ( WINDOWS_LIBS ) set ( MINGW32 ) if ( WIN32 ) + include ( CheckIncludeFiles ) check_include_file ( windows.h HAVE_WINDOWS_H ) check_include_file ( io.h HAVE_IO_H ) check_include_file ( dsound.h HAVE_DSOUND_H ) - check_include_file ( mmsystem.h HAVE_MMSYSTEM_H ) + check_include_files ( "windows.h;mmsystem.h" HAVE_MMSYSTEM_H ) set ( WINDOWS_SUPPORT ${HAVE_WINDOWS_H} ) set ( WINDOWS_LIBS "dsound;winmm;ws2_32" ) set ( LIBFLUID_CPPFLAGS "-DFLUIDSYNTH_DLL_EXPORTS" )