Skip to content

Commit

Permalink
setting the policy to new is not needed, because we demand cmake_mini…
Browse files Browse the repository at this point in the history
…mum_required(VERSION 3.8) and this policy was introduced in cmake 3.3, see heere : https://cmake.org/cmake/help/latest/policy/CMP0057.html

this means any newer cmake is using the new policy (unless somebody would set it to old explicitly)
  • Loading branch information
killerbot242 committed Jul 20, 2024
1 parent bd3d896 commit f10ac31
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions cmake/config.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ check_function_exists("poll" PQXX_HAVE_POLL)

set(CMAKE_REQUIRED_LIBRARIES pq)

cmake_policy(SET CMP0057 NEW)

# check_cxx_source_compiles requires CMAKE_REQUIRED_DEFINITIONS to specify
# compiling arguments. Workaround: Push CMAKE_REQUIRED_DEFINITIONS
if(CMAKE_REQUIRED_DEFINITIONS)
Expand Down

0 comments on commit f10ac31

Please sign in to comment.