Skip to content

Commit

Permalink
Revert "Fix compatibility with cmake 3.8"
Browse files Browse the repository at this point in the history
This reverts commit 47d56f2.
  • Loading branch information
dimztimz committed Sep 14, 2022
1 parent 359542d commit 20f1067
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions CMakeLists.txt
Expand Up @@ -30,24 +30,22 @@ if (CMAKE_BINARY_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
message(FATAL_ERROR "Building in-source is not supported! Create a build dir and remove ${CMAKE_SOURCE_DIR}/CMakeCache.txt")
endif()

if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.9)
if(CMAKE_VERSION VERSION_GREATER 3.8)
# Enable IPO for CMake versions that support it
cmake_policy(SET CMP0069 NEW)
project(Catch2
VERSION 3.1.0 # CML version placeholder, don't delete
LANGUAGES CXX
# HOMEPAGE_URL is not supported until CMake version 3.12, which
# we do not target yet.
# HOMEPAGE_URL "https://github.com/catchorg/Catch2"
DESCRIPTION "A modern, C++-native, unit test framework."
)
else()
project(Catch2
VERSION 3.1.0 # CML version placeholder, don't delete
LANGUAGES CXX
)
endif()


project(Catch2
VERSION 3.1.0 # CML version placeholder, don't delete
LANGUAGES CXX
# HOMEPAGE_URL is not supported until CMake version 3.12, which
# we do not target yet.
# HOMEPAGE_URL "https://github.com/catchorg/Catch2"
DESCRIPTION "A modern, C++-native, unit test framework."
)


# Provide path for scripts. We first add path to the scripts we don't use,
# but projects including us might, and set the path up to parent scope.
# Then we also add path that we use to configure the project, but is of
Expand Down

0 comments on commit 20f1067

Please sign in to comment.