TensorFlowSource v1.7 package (#2715)
author박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com>
Mon, 24 Dec 2018 08:21:06 +0000 (17:21 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Mon, 24 Dec 2018 08:21:06 +0000 (17:21 +0900)
This commit adds "version" property to TensorFlowSource CMake package
in nncc.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
cmake/packages/TensorFlowLiteConfig.cmake
cmake/packages/TensorFlowSource-1.7/TensorFlowSourceConfig.cmake [moved from cmake/packages/TensorFlowSourceConfig.cmake with 100% similarity]
cmake/packages/TensorFlowSource-1.7/TensorFlowSourceConfigVersion.cmake [new file with mode: 0644]

index dcf59cd..1f737b0 100644 (file)
@@ -1,5 +1,5 @@
 function(_TensorFlowLite_import)
-  nncc_find_package(TensorFlowSource QUIET)
+  nncc_find_package(TensorFlowSource QUIET EXACT 1.7)
 
   if(NOT TensorFlowSource_FOUND)
     set(TensorFlowLite_FOUND FALSE PARENT_SCOPE)
diff --git a/cmake/packages/TensorFlowSource-1.7/TensorFlowSourceConfigVersion.cmake b/cmake/packages/TensorFlowSource-1.7/TensorFlowSourceConfigVersion.cmake
new file mode 100644 (file)
index 0000000..b1d5282
--- /dev/null
@@ -0,0 +1,10 @@
+set(PACKAGE_VERSION "1.7")
+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)