Skip to content

Commit b78fa24

Browse files
authored
Merge pull request #5 from cristianadam/gate-inclusion-fix
Fix inclusion of HunterGate.cmake
2 parents 5f388dc + 6bc87fd commit b78fa24

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

CMakeLists.txt

+1-3
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44

55
cmake_minimum_required(VERSION 3.2)
66

7-
include("${CMAKE_CURRENT_LIST_DIR}/cmake/HunterGate.cmake")
8-
97
if (NOT HUNTER_URL AND NOT HUNTER_SHA1)
108
file(
119
DOWNLOAD https://api.github.com/repos/cpp-pm/hunter/releases/latest
@@ -66,7 +64,7 @@ endif()
6664

6765
file(WRITE
6866
${CMAKE_BINARY_DIR}/HunterSetup.cmake.in
69-
"include(${CMAKE_BINARY_DIR}/HunterGate.cmake)\n"
67+
"include(\"${CMAKE_CURRENT_LIST_DIR}/cmake/HunterGate.cmake\")\n"
7068
"HunterGate(
7169
URL ${HUNTER_URL}
7270
SHA1 ${HUNTER_SHA1}

0 commit comments

Comments
 (0)