microsoft/onnxruntime-extensions
Publicmirrored fromhttps://github.com/microsoft/onnxruntime-extensionsAvailable
cmake/externals/blingfire.cmake
19lines · modecode
| 1 | FetchContent_Declare( |
| 2 | Blingfire |
| 3 | GIT_REPOSITORY https://github.com/microsoft/BlingFire.git |
| 4 | GIT_TAG 0831265c1aca95ca02eca5bf1155e4251e545328 |
| 5 | ) |
| 6 | |
| 7 | |
| 8 | FetchContent_GetProperties(Blingfire) |
| 9 | |
| 10 | if (NOT blingfire_POPULATED) |
| 11 | FetchContent_Populate(Blingfire) |
| 12 | |
| 13 | # enable size optimization build |
| 14 | add_subdirectory(${blingfire_SOURCE_DIR} ${blingfire_BINARY_DIR} EXCLUDE_FROM_ALL) |
| 15 | set_target_properties(bingfirtinydll_static PROPERTIES |
| 16 | FOLDER externals/bingfire) |
| 17 | set_target_properties(fsaClientTiny PROPERTIES |
| 18 | FOLDER externals/bingfire) |
| 19 | endif() |
| 20 | |