After building and installing bgfx using CMake on Windows, when including bx.h in my consuming application I hit the compile error that alloca.h could not be found.
There's a workaround for this in the bx repo where compat/<platform> folders are added to the target include folders - this change adds these paths for installed targets.
I also had to explicitly add include(GNUInstallDirs) as ${CMAKE_INSTALL_INCLUDEDIR} seemed to not always be populated
Hi there,
After building and installing bgfx using CMake on Windows, when including bx.h in my consuming application I hit the compile error that
alloca.h
could not be found.There's a workaround for this in the bx repo where
compat/<platform>
folders are added to the target include folders - this change adds these paths for installed targets.I also had to explicitly add
include(GNUInstallDirs)
as${CMAKE_INSTALL_INCLUDEDIR}
seemed to not always be populatedThanks!
Tom