pdidev / pdi

The PDI Data Interface
https://pdi.dev
BSD 3-Clause "New" or "Revised" License
6 stars 0 forks source link

Missing CMake policy - jobs failing : #87431 and others #441

Closed jbigot closed 2 months ago

jbigot commented 1 year ago

In GitLab by @fxmordant on Oct 11, 2023, 09:30

Job #87431 failed for dfdb825e06713df2df0235a6c75acb84a6bb979b:

The reported error indicates that since CMP0057 is not enabled, the OLD behavior is used, resulting in the "IN_LIST" keyword being ignored as described in cmake/CMP0057

CMake Warning (dev) at /tmpfs/staging/share/pdi/cmake/PDIConfig.cmake:47 (if): Policy CMP0057 is not set: Support new IN_LIST if() operator. Run "cmake --help-policy CMP0057" for policy details. Use the cmake_policy command to set the policy and suppress this warning. IN_LIST will be interpreted as an operator when the policy is set to NEW. Since the policy is not set the OLD behavior will be used.

Call Stack (most recent call first): CMakeLists.txt:45 (find_package) This warning is for project developers. Use -Wno-dev to suppress it. CMake Error at /tmpfs/staging/share/pdi/cmake/PDIConfig.cmake:47 (if): if given arguments: "Fortran" "IN_LIST" "PDI_FIND_COMPONENTS" Unknown arguments specified Call Stack (most recent call first): CMakeLists.txt:45 (find_package) -- Configuring incomplete, errors occurred!

jbigot commented 1 year ago

Ah, no, sorry, this is in the PDIConfig where 2.8 is required. Let's change that to 3.5!

jbigot commented 1 year ago

In GitLab by @fxmordant on Oct 17, 2023, 10:54

mentioned in commit 7d4d25eb64dd373e97ca4a07c6ac02aea8c84379