Skip to content

Commit

Permalink
[libc] Fix policy CMP0116 warnings for cmake 3.20 or above.
Browse files Browse the repository at this point in the history
Warnings due to changes in behavior of cmake 3.20 or above.  See
https://cmake.org/cmake/latest/policy/CMP0116.html

Reviewed By: sivachandra

Differential Revision: https://reviews.llvm.org/D145983
  • Loading branch information
lntue committed Mar 13, 2023
1 parent 991e573 commit 60d2dbf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions libc/CMakeLists.txt
@@ -1,5 +1,12 @@
cmake_minimum_required(VERSION 3.13.4)

# Include LLVM's cmake policies.
if(NOT DEFINED LLVM_COMMON_CMAKE_UTILS)
set(LLVM_COMMON_CMAKE_UTILS ${CMAKE_CURRENT_SOURCE_DIR}/../cmake)
endif()
include(${LLVM_COMMON_CMAKE_UTILS}/Modules/CMakePolicy.cmake
NO_POLICY_SCOPE)

# Default to C++17
set(CMAKE_CXX_STANDARD 17)

Expand Down

0 comments on commit 60d2dbf

Please sign in to comment.