-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[infra] cmake for TensorFlowSource-2.12.1 (#11422)
This will introduce cmake package to download TensorFlowSource-2.12.1. ONE-DCO-1.0-Signed-off-by: SaeHie Park <[email protected]>
- Loading branch information
1 parent
ec1e6d3
commit ff51c1d
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
infra/cmake/packages/TensorFlowSource-2.12.1/TensorFlowSourceConfig.cmake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
function(_TensorFlowSource_import) | ||
if(NOT DOWNLOAD_TENSORFLOW) | ||
set(TensorFlowSource_FOUND FALSE PARENT_SCOPE) | ||
return() | ||
endif(NOT DOWNLOAD_TENSORFLOW) | ||
|
||
nnas_include(ExternalSourceTools) | ||
nnas_include(OptionTools) | ||
|
||
envoption(EXTERNAL_DOWNLOAD_SERVER "https://github.com") | ||
envoption(TENSORFLOW_2_12_1_URL ${EXTERNAL_DOWNLOAD_SERVER}/tensorflow/tensorflow/archive/v2.12.1.tar.gz) | ||
|
||
ExternalSource_Download(TENSORFLOW DIRNAME TENSORFLOW-2.12.1 ${TENSORFLOW_2_12_1_URL}) | ||
|
||
set(TensorFlowSource_DIR ${TENSORFLOW_SOURCE_DIR} PARENT_SCOPE) | ||
set(TensorFlowSource_FOUND TRUE PARENT_SCOPE) | ||
endfunction(_TensorFlowSource_import) | ||
|
||
_TensorFlowSource_import() |
10 changes: 10 additions & 0 deletions
10
infra/cmake/packages/TensorFlowSource-2.12.1/TensorFlowSourceConfigVersion.cmake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
set(PACKAGE_VERSION "2.12.1") | ||
set(PACKAGE_VERSION_EXACT FALSE) | ||
set(PACKAGE_VERSION_COMPATIBLE FALSE) | ||
set(PACKAGE_VERSION_UNSUITABLE TRUE) | ||
|
||
if(PACKAGE_FIND_VERSION VERSION_EQUAL PACKAGE_VERSION) | ||
set(PACKAGE_VERSION_EXACT TRUE) | ||
set(PACKAGE_VERSION_COMPATIBLE TRUE) | ||
set(PACKAGE_VERSION_UNSUITABLE FALSE) | ||
endif(PACKAGE_FIND_VERSION VERSION_EQUAL PACKAGE_VERSION) |