blob: 7f4dfef03f810f34aae3818fa31c07bd208e85ef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -136,6 +136,9 @@ if (DYNARMIC_TESTS_USE_UNICORN)
find_package(Unicorn REQUIRED)
endif()
+find_package(fmt REQUIRED)
+add_library(fmt ALIAS fmt::fmt)
+
# Pull in externals CMakeLists for libs where available
add_subdirectory(externals)
--- a/externals/CMakeLists.txt
+++ b/externals/CMakeLists.txt
@@ -9,7 +9,7 @@ target_include_directories(catch INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOU
# fmt
-if (NOT DYNARMIC_NO_BUNDLED_FMT)
+if (NOT DYNARMIC_NO_BUNDLED_FMT AND NOT TARGET fmt)
# fmtlib formatting library
add_subdirectory(fmt)
endif()
|