From a2ebd10273eaa4015e744fa186a364fbf18dd17e Mon Sep 17 00:00:00 2001 From: Simon Symeonidis Date: Mon, 25 Dec 2023 12:29:15 -0500 Subject: [PATCH] Add fmtlib (>=8.0.0) in appropriate CMake files --- cmake/PTE_ThirdParty.cmake | 1 + cmake/third_party/fmt.cmake | 1 + source/util/CMakeLists.txt | 2 +- test/CMakeLists.txt | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 cmake/third_party/fmt.cmake diff --git a/cmake/PTE_ThirdParty.cmake b/cmake/PTE_ThirdParty.cmake index ad5da565..c02c0bb0 100644 --- a/cmake/PTE_ThirdParty.cmake +++ b/cmake/PTE_ThirdParty.cmake @@ -11,3 +11,4 @@ include ( third_party/nlohmann_json ) include ( third_party/pugixml ) include ( third_party/Qt ) include ( third_party/rtmidi ) +include ( third_party/fmt ) diff --git a/cmake/third_party/fmt.cmake b/cmake/third_party/fmt.cmake new file mode 100644 index 00000000..31a2e99a --- /dev/null +++ b/cmake/third_party/fmt.cmake @@ -0,0 +1 @@ +find_package ( fmt 8.0.0 REQUIRED ) diff --git a/source/util/CMakeLists.txt b/source/util/CMakeLists.txt index 7133a088..61d8e0b3 100644 --- a/source/util/CMakeLists.txt +++ b/source/util/CMakeLists.txt @@ -64,5 +64,5 @@ pte_library( HEADERS ${headers} DEPENDS PUBLIC Boost::headers - PRIVATE nlohmann_json::nlohmann_json ${platform_depends} + PRIVATE nlohmann_json::nlohmann_json fmt::fmt ${platform_depends} ) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 5ff47c82..8531e294 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -190,6 +190,7 @@ pte_executable( doctest::doctest pteapp rtmidi::rtmidi + fmt::fmt ) # Workaround for https://github.com/onqtam/doctest/issues/316