Skip to content

Commit

Permalink
Build system: default to fmt shared library when available
Browse files Browse the repository at this point in the history
  • Loading branch information
mazes-80 authored and leoetlino committed Mar 15, 2020
1 parent 15acce8 commit 209db1f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 209db1f

Please sign in to comment.