Handle use case where we are in a conda env but with a static fmt lib

This commit is contained in:
Robert Maynard
2023-05-31 10:51:40 -04:00
parent 702ab05751
commit b8b5d2904b
2 changed files with 14 additions and 2 deletions

View File

@@ -10,6 +10,9 @@ rapids_cpm_find(fmt 9.1.0
"BUILD_SHARED_LIBS OFF"
"CMAKE_POSITION_INDEPENDENT_CODE ON"
)
if(NOT fmt_ADDED)
set(fmt_is_external TRUE)
endif()
if(TARGET fmt::fmt AND NOT TARGET fmt)
add_library(fmt ALIAS fmt::fmt)