mirror of
https://github.com/CLIUtils/CLI11.git
synced 2025-05-07 23:33:52 +00:00
Only split up discovery if CMake version is new enough
This commit is contained in:
parent
7472295d95
commit
6feb10fbc2
@ -34,7 +34,11 @@ set_target_properties(check PROPERTIES FOLDER "Scripts")
|
||||
|
||||
|
||||
if(GOOGLE_TEST_INDIVIDUAL)
|
||||
include(GoogleTest)
|
||||
if(NOT CMAKE_VERSION VERSION_LESS 3.9)
|
||||
include(GoogleTest)
|
||||
else()
|
||||
set(GOOGLE_TEST_INDIVIDUAL OFF)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# Target must already exist
|
||||
|
Loading…
x
Reference in New Issue
Block a user