From 2577b55681a97f3eec3fb0e3b5a4fb7f2cb18b8a Mon Sep 17 00:00:00 2001 From: manuel Date: Thu, 30 Aug 2018 00:42:04 +0200 Subject: sync with upstream --- cmake/modules/FindFmt.cmake | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'cmake/modules/FindFmt.cmake') diff --git a/cmake/modules/FindFmt.cmake b/cmake/modules/FindFmt.cmake index 5e47509..df18d85 100644 --- a/cmake/modules/FindFmt.cmake +++ b/cmake/modules/FindFmt.cmake @@ -30,7 +30,7 @@ if(ENABLE_INTERNAL_FMT) if(APPLE) set(EXTRA_ARGS "-DCMAKE_OSX_ARCHITECTURES=${CMAKE_OSX_ARCHITECTURES}") - endif() + endif() set(FMT_LIBRARY ${CMAKE_BINARY_DIR}/${CORE_BUILD_DIR}/lib/libfmt.a) set(FMT_INCLUDE_DIR ${CMAKE_BINARY_DIR}/${CORE_BUILD_DIR}/include) @@ -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) -- cgit v1.2.3