Skip to content

Commit

Permalink
Silence warnings when building with CMake 3.27 (#16)
Browse files Browse the repository at this point in the history
* CMake policy CMP0114 (introduced CMake 3.19) warns if
  ExternalProject is used with Xcode generator and is
  required to use Xcode 'new build system'
* CMake policy CMP0135 (introduced CMake 3.24) warns if
  DOWNLOAD_EXTRACT_TIMESTAMP is not specified in
  ExternalProject.
  • Loading branch information
hjmallon authored Oct 27, 2023
1 parent 82d8cc6 commit d4ef316
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmake/HunterGate.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,12 @@ function(hunter_gate_download dir)
WRITE
"${cmakelists}"
"cmake_minimum_required(VERSION 3.5)\n"
"if(POLICY CMP0114)\n"
" cmake_policy(SET CMP0114 NEW)\n"
"endif()\n"
"if(POLICY CMP0135)\n"
" cmake_policy(SET CMP0135 NEW)\n"
"endif()\n"
"project(HunterDownload LANGUAGES NONE)\n"
"include(ExternalProject)\n"
"ExternalProject_Add(\n"
Expand Down

0 comments on commit d4ef316

Please sign in to comment.