From 4f48f1dfa515bc07bb3c2f13a16c59cdd89a7d05 Mon Sep 17 00:00:00 2001 From: Matthew Albrecht Date: Wed, 23 Jun 2021 22:18:27 -0500 Subject: [PATCH] Only include examples when examples or tools are built. tools/texturev and tools/geometryv depend on example-common. --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ce0b016..e7b7e46 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)