summaryrefslogtreecommitdiff
path: root/infra/nnfw/cmake/packages/Enum34SourceConfig.cmake
blob: 96b6ca85a0307314182119092e3453d93dd178dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
function(_enum34Source_import)
    nnfw_include(ExternalSourceTools)
    nnfw_include(OptionTools)

    envoption(EXTERNAL_DOWNLOAD_SERVER "https://bitbucket.org")
    set(ENUM34_URL ${EXTERNAL_DOWNLOAD_SERVER}/stoneleaf/enum34/get/1.1.6.tar.gz)

    ExternalSource_Get("python_enum" ${DOWNLOAD_NNPACK} ${ENUM34_URL})

    set(PYTHON_ENUM_SOURCE_DIR ${python_enum_SOURCE_DIR} PARENT_SCOPE)
    set(PYTHON_ENUM_SOURCE_FOUND ${python_enum_SOURCE_GET} PARENT_SCOPE)
endfunction(_enum34Source_import)

_enum34Source_import()