Commit 0dd8cec 1 parent 5069291 commit 0dd8cec Copy full SHA for 0dd8cec
File tree 2 files changed +10
-3
lines changed
2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -22,11 +22,13 @@ add_subdirectory(${PROJECT_LIB_DIR}/CLI)
22
22
23
23
# use included fmt or external one
24
24
if (${vt_external_fmt} )
25
- # user should provide 'fmt_DIR' to CMake (unless fmt is installed in system libs)
26
- if (fmt_DIR)
25
+ # user should provide 'fmt_DIR' or 'fmt_ROOT' to CMake (unless fmt is installed in system libs)
26
+ if (fmt_ROOT)
27
+ message (STATUS "vt_external_fmt = ON. Using fmt located at ${fmt_ROOT} " )
28
+ elseif (fmt_DIR)
27
29
message (STATUS "vt_external_fmt = ON. Using fmt located at ${fmt_DIR} " )
28
30
else ()
29
- message (STATUS "vt_external_fmt = ON but fmt_DIR is not provided!" )
31
+ message (STATUS "vt_external_fmt = ON but neither fmt_DIR nor fmt_ROOT is provided!" )
30
32
endif ()
31
33
find_package (fmt 7.1.0 REQUIRED)
32
34
Original file line number Diff line number Diff line change @@ -26,4 +26,9 @@ endif()
26
26
set (VT_INCLUDE_DIRS "@CMAKE_INSTALL_PREFIX@/include" )
27
27
set (VT_CXX_COMPILER "@CMAKE_CXX_COMPILER@" )
28
28
29
+ if (@vt_external_fmt@)
30
+ set (fmt_DIR @fmt_DIR@)
31
+ find_dependency(fmt REQUIRED HINTS @fmt_DIR@)
32
+ endif ()
33
+
29
34
set (VT_HAS_FMT "TRUE" )
You can’t perform that action at this time.
0 commit comments