widberg / bgfx.cmake

https://github.com/bkaradzic/bgfx.cmake. Independently maintained CMake build scripts for bgfx. Released under public domain.
https://github.com/bkaradzic/bgfx.cmake
Creative Commons Zero v1.0 Universal
286 stars 254 forks source link

Fix build errors when supplying relative paths to BX_DIR, BIMG_DIR and BGFX_DIR #28

Closed Mischa-Alff closed 6 years ago

Mischa-Alff commented 6 years ago

Previously, relative paths supplied to these variables caused build errors as they remained relative even when the current directory changed (e.g when building things in generated/).

This PR fixes that issue by rendering those paths absolute as soon as possible in CMakeLists.txt.