FWGS / hlsdk-portable

Portable Half-Life SDK. GoldSource and Xash3D. Crossplatform.
https://xash.su
Other
273 stars 126 forks source link

Fix Debug builds with old ninja versions #478

Closed FreeSlave closed 1 month ago

FreeSlave commented 1 month ago

${CMAKE_STRIP} is evaluated to empty string, so it tries to execute "" -s /path/to/cl_dll/client.so which leads to the error /bin/sh: 1: : Permission denied.

This behavior is observed with Ninja version installed in the Steam runtime container. Somehow it's not an issue on the newer versions.

The solution is to strip only on Release build in the postbuild.