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.
This commit is contained in:
Lioncash 2019-05-06 14:27:41 -04:00 committed by MerryMage
parent 7d20f3b861
commit acd7ac5ed3

View file

@ -301,7 +301,14 @@ if (CMAKE_SYSTEM_NAME STREQUAL "Windows")
endif() endif()
export( export(
TARGETS dynarmic boost fmt xbyak TARGETS dynarmic boost xbyak
NAMESPACE dynarmic:: NAMESPACE dynarmic::
FILE "dynarmic-config.cmake" FILE "dynarmic-config.cmake"
) )
if (NOT DYNARMIC_NO_BUNDLED_FMT)
export(
TARGETS fmt
NAMESPACE dynarmic::
APPEND FILE "dynarmic-config.cmake"
)
endif()