Skip to content

Commit

Permalink
set policy to allow BUILD_TESTING to be used as a variable (#606)
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Boswell authored Mar 4, 2020
1 parent d023c9c commit 0503d84
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 @@ -21,6 +21,10 @@ if (POLICY CMP0069)
cmake_policy(SET CMP0069 NEW) # Enable LTO/IPO if available in the compiler, see AwsCFlags
endif()

if (POLICY CMP0077)
cmake_policy(SET CMP0077 OLD) # Enable options to get their values from normal variables
endif()

list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
include(AwsCFlags)
include(AwsCheckHeaders)
Expand Down

0 comments on commit 0503d84

Please sign in to comment.