diff --git a/CMakeLists.txt b/CMakeLists.txt index 02d6916d86fc..274cc58b31bf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -532,7 +532,13 @@ if (_M_X86) add_subdirectory(Externals/Bochs_disasm) endif() add_subdirectory(Externals/cpp-optparse) -add_subdirectory(Externals/fmt EXCLUDE_FROM_ALL) +find_package(fmt 6.0) +if(fmt_FOUND) + message(STATUS "Using shared fmt ${fmt_VERSION}") +else() + message(STATUS "Using static fmt from Externals") + add_subdirectory(Externals/fmt EXCLUDE_FROM_ALL) +endif() add_subdirectory(Externals/glslang) add_subdirectory(Externals/imgui)