diff options
author | fuzzard <fuzzard@kodi.tv> | 2022-06-13 13:00:45 +1000 |
---|---|---|
committer | fuzzard <fuzzard@kodi.tv> | 2022-06-17 11:18:32 +1000 |
commit | 7c62df558ab30eea3f6110cbd931137530469767 (patch) | |
tree | 11a224eeeafd8b2de68b9973349ada22d139dfc9 | |
parent | e26af3df9e20b70e57dbad39905f61c70f508baf (diff) |
[cmake] fmt use generate_patchcommand
-rw-r--r-- | cmake/modules/FindFmt.cmake | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/cmake/modules/FindFmt.cmake b/cmake/modules/FindFmt.cmake index a6e811eb5a..32af4a21a1 100644 --- a/cmake/modules/FindFmt.cmake +++ b/cmake/modules/FindFmt.cmake @@ -34,15 +34,12 @@ if(NOT TARGET fmt::fmt) endif() set(FMT_VERSION ${${MODULE}_VER}) + # fmt debug uses postfix d for all platforms + set(FMT_DEBUG_POSTFIX d) if(WIN32 OR WINDOWS_STORE) - # find the path to the patch executable - find_package(Patch MODULE REQUIRED) - - set(patch ${CMAKE_SOURCE_DIR}/tools/depends/target/${MODULE_LC}/001-windows-pdb-symbol-gen.patch) - PATCH_LF_CHECK(${patch}) - - set(PATCH_COMMAND ${PATCH_EXECUTABLE} -p1 -i ${patch}) + set(patches "${CMAKE_SOURCE_DIR}/tools/depends/target/${MODULE_LC}/001-windows-pdb-symbol-gen.patch") + generate_patchcommand("${patches}") endif() set(CMAKE_ARGS -DCMAKE_CXX_EXTENSIONS=${CMAKE_CXX_EXTENSIONS} @@ -52,9 +49,6 @@ if(NOT TARGET fmt::fmt) -DFMT_INSTALL=ON "${EXTRA_ARGS}") - # fmt debug uses postfix d for all platforms - set(FMT_DEBUG_POSTFIX d) - BUILD_DEP_TARGET() else() # Populate paths for find_package_handle_standard_args |