[openal] Problem building OpenAL Soft in subdirectory (patch attached)

Jesper Särnesjö sarnesjo at gmail.com
Wed Aug 20 08:42:07 EDT 2014


Hi!

I have OpenAL Soft in a subdirectory of my project, and add it to my
main CMakeLists.txt file using ADD_SUBDIRECTORY. However, this fails
because one of the CMake files used by OpenAL Soft,
CheckFileOffsetBits.cmake, refers to CMAKE_BINARY_DIR and
CMAKE_SOURCE_DIR.

If I change these to CMAKE_CURRENT_BINARY_DIR and
CMAKE_CURRENT_SOURCE_DIR (see patch), everything works. I *think* this
is more correct, but my CMake skill level is beginner at best.

What do you say?

-- Jesper Särnesjö
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Use-directories-relative-to-current-project-in-Check.patch
Type: application/octet-stream
Size: 1482 bytes
Desc: not available
URL: <http://openal.org/pipermail/openal/attachments/20140820/7c5bfa6e/attachment.obj>


More information about the openal mailing list