freealut cmake on osx

Matevz Tadel <[email protected]>
Newsgroups gmane.comp.lib.openal
Message-ID <[email protected]>
Hi,

I was having trouble building freealut with autotools on osx 10.6 (when
passing '-arch i386') so I decided to give cmake build a go. I had to
make a small change to CMakeLists.txt as openal headers come from OpenAL
on osx:

CHECK_INCLUDE_FILES("AL/alc.h;AL/al.h" AL_HEADERS_UNIX)
CHECK_INCLUDE_FILES("OpenAL/alc.h;OpenAL/al.h" AL_HEADERS_OSX)
IF(NOT AL_HEADERS_UNIX AND NOT AL_HEADERS_OSX)
   MESSAGE(FATAL_ERROR "OpenAL header files not found - aborting.")
ENDIF(NOT AL_HEADERS_UNIX AND NOT AL_HEADERS_OSX)

This is for source tarball freealut-1.1.0.tar.gz -- if you tell me which
SVN to use can make a patch, even though I never used cmake before so
there is probably a better way to perform this test.

Best,
Matevz


_______________________________________________
Openal mailing list
[email protected]
http://opensource.creative.com/mailman/listinfo/openal
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.