Skip to content

Commit

Permalink
Enable LTO policy (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
ColdenCullen authored Sep 10, 2019
1 parent 95bd8fc commit a374678
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
cmake_minimum_required(VERSION 3.1)
project(aws-c-compression C)

if (POLICY CMP0069)
cmake_policy(SET CMP0069 NEW) # Enable LTO/IPO if available in the compiler, see AwsCFlags
endif()

if (DEFINED CMAKE_PREFIX_PATH)
file(TO_CMAKE_PATH "${CMAKE_PREFIX_PATH}" CMAKE_PREFIX_PATH)
endif()
Expand Down

0 comments on commit a374678

Please sign in to comment.