Skip to content

Commit

Permalink
Use old behaviour for CMP0126
Browse files Browse the repository at this point in the history
  • Loading branch information
raulcd committed Jan 29, 2025
1 parent 61890f9 commit 1391887
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
cmake_minimum_required(VERSION 3.21)
message(STATUS "Building using CMake version: ${CMAKE_VERSION}")

# https://cmake.org/cmake/help/latest/policy/CMP0125.html
# https://cmake.org/cmake/help/latest/policy/CMP0126.html
#
# find_(path|file|library|program) have consistent behavior for cache variables.
cmake_policy(SET CMP0125 OLD)
# set(CACHE) does not remove a normal variable of the same name.
cmake_policy(SET CMP0126 OLD)

# https://www.cmake.org/cmake/help/latest/policy/CMP0025.html
#
Expand Down

0 comments on commit 1391887

Please sign in to comment.