Skip to content

Commit

Permalink
Add fmtlib as submodule, under 3rdparty/ directory
Browse files Browse the repository at this point in the history
fmtlib (http://fmtlib.net/) is a small, safe and fast formatting library.
  • Loading branch information
hcho3 committed Aug 23, 2018
1 parent efd6b16 commit bd925ee
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,8 @@ treelite
python/dist/

# symbol directories
*.dSYM/
*.dSYM/

# 3rd party libraries
3rdparty/inja.hpp
3rdparty/json.hpp
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[submodule "dmlc-core"]
path = dmlc-core
url = https://github.com/dmlc/dmlc-core
[submodule "3rdparty/fmt"]
path = 3rdparty/fmt
url = https://github.com/fmtlib/fmt.git
1 change: 1 addition & 0 deletions 3rdparty/fmt
Submodule fmt added at 135ab5
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,13 @@ endif()
include_directories (
${PROJECT_SOURCE_DIR}/include
${PROJECT_SOURCE_DIR}/dmlc-core/include
${PROJECT_SOURCE_DIR}/3rdparty/fmt # fmtlib
)

# use fmtlib as header-only
add_definitions(-DFMT_HEADER_ONLY)
add_subdirectory(3rdparty/fmt EXCLUDE_FROM_ALL)

# Copy files for runtime deployment
read_filelist(runtime/FILELIST RUNTIME_FILES)
deploy_file(runtime/CMakeLists.txt ".")
Expand Down

0 comments on commit bd925ee

Please sign in to comment.