Skip to content

Commit

Permalink
Enable LTO policy (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
ColdenCullen authored Sep 10, 2019
1 parent f4b569b commit 3896a60
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
Expand Up @@ -14,6 +14,10 @@
cmake_minimum_required(VERSION 3.0)
project(aws-c-cal LANGUAGES C VERSION 0.1.0)

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

option(BYO_CRYPTO "Set this if you want to provide your own cryptography implementation. This will cause the defaults to not be compiled." OFF)

if (DEFINED CMAKE_PREFIX_PATH)
Expand Down

0 comments on commit 3896a60

Please sign in to comment.