1
0
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:
Henry Fredrick Schreiner 2017-11-21 15:02:36 -05:00 committed by Henry Schreiner
parent 7472295d95
commit 6feb10fbc2

View File

@ -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