[openal] Problem building OpenAL Soft in subdirectory (patch attached)
chris.kcat at gmail.com
Wed Aug 20 16:56:43 EDT 2014
On 08/20/2014 05:42 AM, Jesper Särnesjö wrote:
> 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
> 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?
Looks good to me. Also did the same thing for
CheckSharedFunctionExists.cmake (which only needed the binary dir to
write a temp file, but best to be consistent).
More information about the openal