Skip to content

Commit

Permalink
Enable CMake to search the new package variable <PackageName>_ROOT (#975
Browse files Browse the repository at this point in the history
)

* Enable CMake to search the new package variable <PackageName>_ROOT

* CMake format
  • Loading branch information
ThomsonTan authored Sep 9, 2021
1 parent aaf78a3 commit fc8f854
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ cmake_minimum_required(VERSION 3.1)
# versions of gtest
cmake_policy(SET CMP0057 NEW)

# See https://cmake.org/cmake/help/v3.12/policy/CMP0074.html required by certain
# version of zlib which is dependeded by cURL.
if(${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.12")
cmake_policy(SET CMP0074 NEW)
endif()

project(opentelemetry-cpp)

# Mark variables as used so cmake doesn't complain about them
Expand Down

0 comments on commit fc8f854

Please sign in to comment.