olofson / audiality2

A realtime scripted modular audio engine for video games and musical applications.
http://audiality.org/
zlib License
79 stars 5 forks source link

Static linking breaks build of a2play and tests #322

Closed olofson closed 6 years ago

olofson commented 7 years ago

Static linking currently breaks the Audiality 2 build, as "in-tree" linking of a2play and the test programs won't get the necessary linker flags to handle the libaudiality2.a dependencies.

The "proper" fix is probably to not build a2play and the tests as part of the library build, but instead be configured and built like independent projects, after the library has been installed. Not sure if there is any other remotely reliable or portable way of doing it.

olofson commented 7 years ago

Wouldn't it work to keep the tools and tests as a separate CMake project, but add support for it "detecting" the built-but-not-installed A2 library within the build directory? Then there would be no special case linking weirdness; just grabbing the lib from different locations.

olofson commented 6 years ago

CMAKE_ARCHIVE_OUTPUT_DIRECTORY and CMAKE_RUNTIME_OUTPUT_DIRECTORY? It is supposedly possible to make this work properly...