From: 박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 Date: Wed, 15 May 2019 05:23:13 +0000 (+0900) Subject: Distinguish unversioned ONNXSource package (#3469) X-Git-Tag: nncc_backup~599 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=89250d75230e9ffaaa6656c9c88cc50ea1bd65e8;p=platform%2Fcore%2Fml%2Fnnfw.git Distinguish unversioned ONNXSource package (#3469) This commit introduces ONNXSourceConfigVersion.cmake for unversioned package in order to eliminate ambiguity in package searching. Signed-off-by: Jonghyun Park --- diff --git a/cmake/packages/ONNXSourceConfigVersion.cmake b/cmake/packages/ONNXSourceConfigVersion.cmake new file mode 100644 index 0000000..ac9e22e --- /dev/null +++ b/cmake/packages/ONNXSourceConfigVersion.cmake @@ -0,0 +1,9 @@ +set(PACKAGE_VERSION_EXACT FALSE) +set(PACKAGE_VERSION_COMPATIBLE FALSE) +set(PACKAGE_VERSION_UNSUITABLE TRUE) + +if(NOT PACKAGE_FIND_VERSION) + # This package works only when find_package(...) call has no EXACT option + set(PACKAGE_VERSION_COMPATIBLE TRUE) + set(PACKAGE_VERSION_UNSUITABLE FALSE) +endif(NOT PACKAGE_FIND_VERSION)