diff options
author | wsnipex <wsnipex@a1.net> | 2018-07-22 12:34:38 +0200 |
---|---|---|
committer | wsnipex <wsnipex@a1.net> | 2018-07-23 10:51:15 +0200 |
commit | 682a009763256f25e8bc6ddcb714b2a5017d382d (patch) | |
tree | d2961f404751544dc76ab50ffe67fd5a86abb8fd /cmake | |
parent | 56383d5b2c7d1d87e6ff876954214f22e73a2365 (diff) |
[cmake] fix building with internal fmt
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/modules/FindFmt.cmake | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/cmake/modules/FindFmt.cmake b/cmake/modules/FindFmt.cmake index ec0a12cb9e..df18d854ed 100644 --- a/cmake/modules/FindFmt.cmake +++ b/cmake/modules/FindFmt.cmake @@ -90,14 +90,13 @@ if(FMT_FOUND) set(FMT_LIBRARIES ${FMT_LIBRARY}) set(FMT_INCLUDE_DIRS ${FMT_INCLUDE_DIR}) - if(NOT TARGET Fmt::Fmt) - add_library(Fmt::Fmt UNKNOWN IMPORTED) - set_target_properties(Fmt::Fmt PROPERTIES - IMPORTED_LOCATION "${FMT_LIBRARY}" - INTERFACE_INCLUDE_DIRECTORIES "${FMT_INCLUDE_DIR}") + if(NOT TARGET fmt) + add_library(fmt UNKNOWN IMPORTED) + set_target_properties(fmt PROPERTIES + IMPORTED_LOCATION "${FMT_LIBRARY}" + INTERFACE_INCLUDE_DIRECTORIES "${FMT_INCLUDE_DIR}") endif() endif() -mark_as_advanced(FMT_INCLUDE_DIR FMT_LIBRARY) - endif() +mark_as_advanced(FMT_INCLUDE_DIR FMT_LIBRARY) |