Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using via CMake failed (doc incomplete?) #50

Closed
KrisThielemans opened this issue Nov 25, 2023 · 1 comment
Closed

using via CMake failed (doc incomplete?) #50

KrisThielemans opened this issue Nov 25, 2023 · 1 comment

Comments

@KrisThielemans
Copy link

I installed nipet from PyPy and used

    find_package(NiftyPETnipet REQUIRED COMPONENTS mmr_auxe mmr_lmproc petprj CONFIG)

and get

CMake Warning (dev) at my-env/lib/python3.10/site-packages/niftypet/nipet/cmake/NiftyPETnipetConfig.cmake:30 (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:186 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Error at my-env/lib/python3.10/site-packages/niftypet/nipet/cmake/NiftyPETnipetConfig.cmake:30 (if):
  if given arguments:
    "NOT" "_comp" "IN_LIST" "_supported_components"
  Unknown arguments specified

I had the same error when just using

find_package(NiftyPETnipet REQUIRED COMPONENTS mmr_auxe mmr_lmproc petprj)
@KrisThielemans
Copy link
Author

oops. that policy will be set when requiring CMake 3.3, as correctly stated. Sorry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant