Conditionally include hunter gate

This commit is contained in:
Jorrit Wronski
2017-11-15 13:23:37 +01:00
parent b7ce13bf7e
commit cea75e7f6a
2 changed files with 18 additions and 14 deletions
+7 -5
View File
@@ -4,11 +4,13 @@ cmake_minimum_required(VERSION 3.1)
## HUNTER
##
option(HUNTER_ENABLED "Use hunter to manage dependencies" OFF)
include("../cmake/HunterGate.cmake")
HunterGate(
URL "https://github.com/ruslo/hunter/archive/v0.19.156.tar.gz"
SHA1 "8d5e4635b137365e0d1ade4d60accf4e2bb41f0d"
)
if(HUNTER_ENABLED)
include("../cmake/HunterGate.cmake")
HunterGate(
URL "https://github.com/ruslo/hunter/archive/v0.19.156.tar.gz"
SHA1 "8d5e4635b137365e0d1ade4d60accf4e2bb41f0d"
)
endif()
##
## PROJECT