summaryrefslogtreecommitdiff
path: root/infra/nnfw/cmake/packages/OpcodesSourceConfig.cmake
blob: 635249f64cc534a7a594db71cae5910cf7f77d61 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
function(_PeachpySource_import)
    nnfw_include(ExternalSourceTools)
    nnfw_include(OptionTools)

    envoption(EXTERNAL_DOWNLOAD_SERVER "https://github.com")
    set(PEACHPY_URL ${EXTERNAL_DOWNLOAD_SERVER}/Maratyszcza/Opcodes/archive/6e2b0cd9f1403ecaf164dea7019dd54db5aea252.tar.gz)
    ExternalSource_Get("python_opcodes" ${DOWNLOAD_NNPACK} ${PEACHPY_URL})
        
    set(PYTHON_OPCODES_SOURCE_DIR ${python_opcodes_SOURCE_DIR} PARENT_SCOPE)
    set(PYTHON_OPCODES_SOURCE_FOUND ${python_opcodes_SOURCE_GET} PARENT_SCOPE)
endfunction(_PeachpySource_import)

_PeachpySource_import()