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:
parent
7d20f3b861
commit
acd7ac5ed3
1 changed files with 8 additions and 1 deletions
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue