Skip to content

Commit

Permalink
Moved HUNTER_ENABLED option to main file
Browse files Browse the repository at this point in the history
  • Loading branch information
EduMenges committed Jun 5, 2024
1 parent 6e30099 commit 2f2eddb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ set(CMAKE_CXX_STANDARD 17)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake")
set(HUNTER_TLS_VERIFY ON)

option(HUNTER_ENABLED "Enable Hunter package manager support" ON)

include("cmake/HunterGate.cmake")
include("cmake/Catch.cmake")

Expand Down
1 change: 0 additions & 1 deletion cmake/HunterGate.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
# * https://github.com/hunter-packages/gate/
# * https://github.com/ruslo/hunter

option(HUNTER_ENABLED "Enable Hunter package manager support" ON)
if(HUNTER_ENABLED)
if(CMAKE_VERSION VERSION_LESS "3.0")
message(FATAL_ERROR "At least CMake version 3.0 required for hunter dependency management."
Expand Down

0 comments on commit 2f2eddb

Please sign in to comment.