From acd7ac5ed32fc4a5b655e0c41315f202435b9788 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 6 May 2019 14:27:41 -0400 Subject: [PATCH] CMakeLists: Handle DYNARMIC_NO_BUNDLED_FMT in relation to export() This is pretty gross, but until DYNARMIC_NO_BUNDLED_FMT is eliminated, this fixes the use of it in existing libraries or applications making use of dynarmic. --- src/CMakeLists.txt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 01e1238e..34662d9b 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -301,7 +301,14 @@ if (CMAKE_SYSTEM_NAME STREQUAL "Windows") endif() export( - TARGETS dynarmic boost fmt xbyak + TARGETS dynarmic boost xbyak NAMESPACE dynarmic:: FILE "dynarmic-config.cmake" ) +if (NOT DYNARMIC_NO_BUNDLED_FMT) + export( + TARGETS fmt + NAMESPACE dynarmic:: + APPEND FILE "dynarmic-config.cmake" + ) +endif()