Skip to content

Commit 2f2eddb

Browse files
committed
Moved HUNTER_ENABLED option to main file
1 parent 6e30099 commit 2f2eddb

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ set(CMAKE_CXX_STANDARD 17)
77

88
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake")
99
set(HUNTER_TLS_VERIFY ON)
10+
11+
option(HUNTER_ENABLED "Enable Hunter package manager support" ON)
12+
1013
include("cmake/HunterGate.cmake")
1114
include("cmake/Catch.cmake")
1215

cmake/HunterGate.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
# * https://github.com/hunter-packages/gate/
4343
# * https://github.com/ruslo/hunter
4444

45-
option(HUNTER_ENABLED "Enable Hunter package manager support" ON)
4645
if(HUNTER_ENABLED)
4746
if(CMAKE_VERSION VERSION_LESS "3.0")
4847
message(FATAL_ERROR "At least CMake version 3.0 required for hunter dependency management."

0 commit comments

Comments
 (0)