-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFmt.cmake
30 lines (25 loc) · 980 Bytes
/
Fmt.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
include_guard(GLOBAL)
include(CPM)
cpm()
if(NOT DEFINED FMT_REPOSITORY)
set(FMT_REPOSITORY "https://github.com/fmtlib/fmt")
endif()
if(NOT DEFINED FMT_TAG)
set(FMT_TAG "9.1.0")
endif()
declare_option(REPOSITORY fmt OPTION FMT_PEDANTIC VALUE OFF)
declare_option(REPOSITORY fmt OPTION FMT_WERROR VALUE OFF)
declare_option(REPOSITORY fmt OPTION FMT_DOC VALUE OFF)
declare_option(REPOSITORY fmt OPTION FMT_INSTALL VALUE ON)
declare_option(REPOSITORY fmt OPTION FMT_TEST VALUE OFF)
declare_option(REPOSITORY fmt OPTION FMT_FUZZ VALUE OFF)
declare_option(REPOSITORY fmt OPTION FMT_CUDA_TEST VALUE OFF)
declare_option(REPOSITORY fmt OPTION FMT_OS VALUE ON)
declare_option(REPOSITORY fmt OPTION FMT_SYSTEM_HEADERS VALUE ON)
print_options(REPOSITORY fmt)
CPMAddPackage(NAME fmt
GIT_REPOSITORY ${FMT_REPOSITORY}
GIT_TAG ${FMT_TAG}
FETCHCONTENT_UPDATES_DISCONNECTED ${IS_OFFLINE}
OPTIONS "${fmt_OPTIONS}"
)