Move Huntergate inside of not yocto
This should make things cleaner during yocto build.
Tested: Both yocto and out of tree build passed
Change-Id: I74181f3eb3fb77a731f20bcd935a115f58291148
Signed-off-by: James Feist <james.feist@linux.intel.com>
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d05b6d8..214db49 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -4,9 +4,11 @@
set (CMAKE_CXX_STANDARD 17)
set (CMAKE_CXX_STANDARD_REQUIRED ON)
set (CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake ${CMAKE_MODULE_PATH})
-include ("cmake/HunterGate.cmake")
-huntergate (URL "https://github.com/ruslo/hunter/archive/v0.18.64.tar.gz" SHA1
- "baf9c8cc4f65306f0e442b5419967b4c4c04589a")
+if (NOT YOCTO) # to download gtest
+ include ("cmake/HunterGate.cmake")
+ huntergate (URL "https://github.com/ruslo/hunter/archive/v0.18.64.tar.gz"
+ SHA1 "baf9c8cc4f65306f0e442b5419967b4c4c04589a")
+endif ()
project (entity-manager CXX)