microsoft/onnxruntime-extensions
Publicmirrored fromhttps://github.com/microsoft/onnxruntime-extensionsAvailable
cmake/externals/googlere2.cmake
16lines · modecode
| 1 | FetchContent_Declare( |
| 2 | googlere2 |
| 3 | GIT_REPOSITORY https://github.com/google/re2.git |
| 4 | GIT_TAG 2021-06-01 |
| 5 | ) |
| 6 | |
| 7 | FetchContent_GetProperties(googlere2) |
| 8 | string(TOLOWER "googlere2" lcName) |
| 9 | if(NOT ${lcName}_POPULATED) |
| 10 | FetchContent_Populate(googlere2) |
| 11 | add_subdirectory(${googlere2_SOURCE_DIR} ${googlere2_BINARY_DIR} EXCLUDE_FROM_ALL) |
| 12 | set_target_properties(re2 |
| 13 | PROPERTIES |
| 14 | POSITION_INDEPENDENT_CODE ON |
| 15 | FOLDER externals/google/re2) |
| 16 | endif() |
| 17 | |