Define 'nncc_find_package' as macro (#149)
author박종현/동작제어Lab(SR)/Senior Engineer/삼성전자 <jh1302.park@samsung.com>
Thu, 26 Apr 2018 01:56:19 +0000 (10:56 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Thu, 26 Apr 2018 01:56:19 +0000 (10:56 +0900)
commitd371534cbe25fd7776dd8d1b4d3f073694584fae
tree38dfd0bcfb9fca621def8a09bd41b3e098769d25
parentebb66f89ce1f50db7b1f800e2da0d7d760e86f64
Define 'nncc_find_package' as macro (#149)

In CMake, function creates a new scope, and thus it interfers the
behavior of 'find_package' command if its wrapper ('nncc_find_package')
is implemented as a function.

This commit rewrites 'nncc_find_package' as a macro (which does not
create a new scope) to avoid scope issue, and updates existing
configurations accordingly.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
CMakeLists.txt
cmake/packages/ExternalSourceToolsConfig.cmake
cmake/packages/GTestConfig.cmake
cmake/packages/OptionToolsConfig.cmake