diff options
| author | AMS21 | 2020-11-01 09:36:42 +0000 |
|---|---|---|
| committer | GitHub | 2020-11-01 09:36:42 +0000 |
| commit | b8ae2878b4c95a30bfd81aaad1a93b5010736d45 (patch) | |
| tree | a39f984958ec57bf90a6cd05e4261ebfdca615f2 | |
| parent | 735f46ed6d25c80e2be53a1276d89fa157001734 (diff) | |
| download | catch3-b8ae2878b4c95a30bfd81aaad1a93b5010736d45.tar.gz | |
Enable IPO for CMake versions that support it
| -rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index bbe21d29..90d5806b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) |