onnxruntime: fix building with new re2 version
error log: ``` Call Stack (most recent call first): /nix/store/mn0hmdazgdpwlzqbh6x039cg94dg0sz8-abseil-cpp-20210324.2/lib/cmake/absl/abslConfig.cmake:32 (include) /nix/store/201j99lxv8i53s946rdgjir9m8npqp44-cmake-3.26.4/share/cmake-3.26/Modules/CMakeFindDependencyMacro.cmake:76 (find_package) /nix/store/0vacg8f7n1jz9y03bphp991lvljw24jn-re2-2023-08-01-dev/lib/cmake/re2/re2Config.cmake:40 (find_dependency) external/helper_functions.cmake:120 (find_package) external/onnxruntime_external_deps.cmake:306 (onnxruntime_fetchcontent_makeavailable) CMakeLists.txt:510 (include) ```
This commit is contained in:
parent
a11e7e3428
commit
a0fbc9fc32
1 changed files with 2 additions and 0 deletions
|
@ -132,6 +132,7 @@ stdenv.mkDerivation rec {
|
|||
cmakeDir = "../cmake";
|
||||
|
||||
cmakeFlags = [
|
||||
"-DABSL_ENABLE_INSTALL=ON"
|
||||
"-DCMAKE_BUILD_TYPE=RELEASE"
|
||||
"-DFETCHCONTENT_FULLY_DISCONNECTED=ON"
|
||||
"-DFETCHCONTENT_QUIET=OFF"
|
||||
|
@ -143,6 +144,7 @@ stdenv.mkDerivation rec {
|
|||
"-DFETCHCONTENT_SOURCE_DIR_MP11=${mp11}"
|
||||
"-DFETCHCONTENT_SOURCE_DIR_ONNX=${python3Packages.onnx.src}"
|
||||
"-DFETCHCONTENT_SOURCE_DIR_PYTORCH_CPUINFO=${pytorch_cpuinfo}"
|
||||
"-DFETCHCONTENT_SOURCE_DIR_RE2=${re2.src}"
|
||||
"-DFETCHCONTENT_SOURCE_DIR_SAFEINT=${safeint}"
|
||||
"-DFETCHCONTENT_TRY_FIND_PACKAGE_MODE=ALWAYS"
|
||||
"-Donnxruntime_BUILD_SHARED_LIB=ON"
|
||||
|
|
Loading…
Reference in a new issue