Only include examples when examples or tools are built.

tools/texturev and tools/geometryv depend on example-common.
This commit is contained in:
Matthew Albrecht
2021-06-23 22:18:27 -05:00
parent a632b0c745
commit 4f48f1dfa5

View File

@@ -69,7 +69,9 @@ if( BGFX_BUILD_TOOLS )
include( cmake/tools.cmake )
endif()
include( cmake/examples.cmake )
if( BGFX_BUILD_TOOLS OR BGFX_BUILD_EXAMPLES )
include( cmake/examples.cmake )
endif()
if( BGFX_INSTALL )
include(GNUInstallDirs)