due to cmake quirks, you can't specify a white-space only library name. CMake genuinely tries to link a " .lib" resulting in build failures.
With how the headers are written, if you want to static-link soundio, SOUNDIO_STATIC_LIBRARY must be defined during compile - this suppresses the DLL export/import declarations - if this is not done, you get errors about missing imp... symbols during link due to the symbol munging that MSVC uses for DLL import libraries. Export the symbol through the CMAKE mechanisms by declaring it PUBLIC.
due to cmake quirks, you can't specify a white-space only library name. CMake genuinely tries to link a " .lib" resulting in build failures.
With how the headers are written, if you want to static-link soundio, SOUNDIO_STATIC_LIBRARY must be defined during compile - this suppresses the DLL export/import declarations - if this is not done, you get errors about missing imp... symbols during link due to the symbol munging that MSVC uses for DLL import libraries. Export the symbol through the CMAKE mechanisms by declaring it PUBLIC.