Skip to content

Commit

Permalink
Allow using shared fmt
Browse files Browse the repository at this point in the history
Note that FMT < 6.0.0 uses exceptions, which is explicitly disabled when
building dolphin. For example, using unmodified 5.3.0 fails to compile.
  • Loading branch information
Mystro256 committed Mar 11, 2020
1 parent 9f12e0f commit edf2e25
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion CMakeLists.txt
Expand Up @@ -532,7 +532,15 @@ 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.0)
if(fmt_FOUND)
message(STATUS "Using shared fmt")
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 edf2e25

Please sign in to comment.