Skip to content

Commit

Permalink
Enable IPO for CMake versions that support it
Browse files Browse the repository at this point in the history
  • Loading branch information
AMS21 authored Nov 1, 2020
1 parent 735f46e commit b8ae287
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ 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 3.8)
# Enable IPO for CMake versions that support it
cmake_policy(SET CMP0069 NEW)
endif()


project(Catch2 LANGUAGES CXX VERSION 3.0.0)

Expand Down

0 comments on commit b8ae287

Please sign in to comment.