From 7c740975dd2e68337cba1cbb4ee2efb3a080e180 Mon Sep 17 00:00:00 2001 From: Allison Vacanti Date: Thu, 28 Oct 2021 12:39:14 -0400 Subject: [PATCH] Force fmt to build static libs. Otherwise it shows up in our export set when a parent project enables BUILD_SHARED_LIBS --- cmake/NVBenchDependencies.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmake/NVBenchDependencies.cmake b/cmake/NVBenchDependencies.cmake index e486bb3..ef0bb70 100644 --- a/cmake/NVBenchDependencies.cmake +++ b/cmake/NVBenchDependencies.cmake @@ -5,6 +5,9 @@ rapids_cpm_find(fmt 7.1.3 GITHUB_REPOSITORY fmtlib/fmt GIT_TAG 7.1.3 GIT_SHALLOW TRUE + OPTIONS + # Force static to keep fmt internal. + "BUILD_SHARED_LIBS OFF" ) ################################################################################