Skip to content

Commit

Permalink
adios2-config: set the policy directly (ornladios#4157)
Browse files Browse the repository at this point in the history
`cmake_minimum_required` is intended for top-level projects and scripts
to set. Instead, just use the policy version.
  • Loading branch information
mathstuf authored May 7, 2024
1 parent deb06eb commit 42edba8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmake/adios2-config-install.cmake.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
cmake_minimum_required(VERSION 3.12)
cmake_policy(PUSH)
cmake_policy(VERSION 3.12)

set(_ADIOS2_CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH})
list(INSERT CMAKE_MODULE_PATH 0 "${CMAKE_CURRENT_LIST_DIR}")
Expand Down Expand Up @@ -30,3 +31,5 @@ include("${CMAKE_CURRENT_LIST_DIR}/adios2-config-common.cmake")

set(CMAKE_MODULE_PATH ${_ADIOS2_CMAKE_MODULE_PATH})
unset(_ADIOS2_CMAKE_MODULE_PATH)

cmake_policy(POP)

0 comments on commit 42edba8

Please sign in to comment.