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)