Closed JimmyLord closed 6 months ago
When adding bgfx to a new cmake project using the following:
option(BGFX_BUILD_TOOLS "" OFF) option(BGFX_BUILD_EXAMPLES "" OFF) option(BGFX_BUILD_TESTS "" OFF) option(BGFX_INSTALL "" OFF) option(BGFX_CUSTOM_TARGETS "" OFF) add_subdirectory("Libraries/bgfx.cmake")
The examples-common project is still added to my solution.
This can be fixed by wrapping add_example( common ... ... ... ) in a if(BGFX_BUILD_EXAMPLES) block in the examples.cmake file.
add_example( common ... ... ... )
if(BGFX_BUILD_EXAMPLES)
examples.cmake
It's not only examples that link with examples common. Shaderc is in tools as one example.
When adding bgfx to a new cmake project using the following:
The examples-common project is still added to my solution.
This can be fixed by wrapping
add_example( common ... ... ... )
in aif(BGFX_BUILD_EXAMPLES)
block in theexamples.cmake
file.