diff --git a/CMakeLists.txt b/CMakeLists.txt index 28a0986..c395b7a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,10 +4,17 @@ if(DEFINED PROJECT_NAME) set(INDICATORS_SUBPROJECT ON) endif() -project(indicators VERSION 1.8.0 LANGUAGES CXX - HOMEPAGE_URL "https://github.com/p-ranav/indicators" - DESCRIPTION "Activity Indicators for Modern C++") - +if(CMAKE_VERSION VERSION_GREATER_EQUAL "3.12") + project(indicators VERSION 1.8.0 LANGUAGES CXX + HOMEPAGE_URL "https://github.com/p-ranav/indicators" + DESCRIPTION "Activity Indicators for Modern C++") +elseif(CMAKE_VERSION VERSION_GREATER_EQUAL "3.9") + project(indicators VERSION 1.8.0 LANGUAGES CXX + DESCRIPTION "Activity Indicators for Modern C++") +else() + project(indicators VERSION 1.8.0 LANGUAGES CXX) +endif() + if(EXISTS "${CMAKE_BINARY_DIR}/conanbuildinfo.cmake") include("${CMAKE_BINARY_DIR}/conanbuildinfo.cmake") conan_basic_setup()