Rename the OpenAL target if also building the router
commitf313f9c117846b11b2e88198be9af0174e57b577
authorChris Robinson <chris.kcat@gmail.com>
Mon, 10 Jul 2017 08:57:22 +0000 (10 01:57 -0700)
committerChris Robinson <chris.kcat@gmail.com>
Mon, 10 Jul 2017 08:57:22 +0000 (10 01:57 -0700)
treea1006253329d422da4d8b3c4b0e1e33bc95b5207
parentd6326c1791d6a5b3280ad6dd4e25d1c1f42c2724
Rename the OpenAL target if also building the router

This is rather ugly, but it's necessary to get a proper export configuration.
The issue was that the main OpenAL target library name is set to soft_oal when
the router is being built, which is incorrect for the exported config library.
Exporting the router would have the incorrect name of OpenAL::Router.

So this change has the router use the OpenAL target name when it's built, which
is good since it will have the standard OpenAL lib name for apps to link to and
get the OpenAL::OpenAL export name. The main library's target name is changed
in this case to avoid conflicts.
CMakeLists.txt