File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,17 @@ option(INSTALL_XMLDUMP "Install utilities that dump df-structures information (f
33if (BUILD_XMLDUMP)
44 find_package (Perl REQUIRED)
55 find_package (Python 3 REQUIRED)
6+
7+ INCLUDE (FetchContent)
8+ FetchContent_Declare(
9+ fmt
10+ GIT_REPOSITORY https://github.com/fmtlib/fmt.git
11+ GIT_TAG 790b9389ae99c4ddebdd2736a8602eca1fec684e # 12.1.0 + bugfix for MSVC warning + build time improvements
12+ )
13+ FetchContent_MakeAvailable(fmt)
14+ set (FMTLIB fmt)
15+ add_definitions ("-DUSE_FMTLIB" )
16+
617 file (GLOB XML_FILES ../df.*.xml)
718 set (TYPE_DUMP_GENERATOR "${CMAKE_CURRENT_SOURCE_DIR} /generate-type-dump.py" )
819 add_custom_command (OUTPUT dump-type -sizes.cpp
@@ -16,7 +27,10 @@ if(BUILD_XMLDUMP)
1627 add_executable (xml-dump-type -sizes dump-type -sizes.cpp)
1728 add_dependencies (xml-dump-type -sizes generate_headers)
1829 target_include_directories (xml-dump-type -sizes PRIVATE ${dfapi_SOURCE_DIR} /include )
30+ target_link_libraries (xml-dump-type -sizes PRIVATE ${FMTLIB} )
1931 if (INSTALL_XMLDUMP)
2032 install (TARGETS xml-dump-type -sizes DESTINATION .)
2133 endif ()
2234endif ()
35+
36+
You can’t perform that action at this time.
0 commit comments