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

Python: Upgrade CMake Code for CMake Policy 78 #3330

Open
sanssecours opened this issue Dec 10, 2019 · 1 comment
Open

Python: Upgrade CMake Code for CMake Policy 78 #3330

sanssecours opened this issue Dec 10, 2019 · 1 comment

Comments

@sanssecours
Copy link
Member

@sanssecours sanssecours commented Dec 10, 2019

Steps to Reproduce the Problem

  1. Set the new behavior for CMake Policy 0078 in src/bindings/swig/python/CMakeLists.txt:

    cmake_policy (SET CMP0078 NEW)
  2. Create the build system:

    cmake -DBINDINGS='python' -Bbuild

Expected Result

CMake should be able to create the build system successfully.

Actual Result

CMake fails and prints the following error message:

CMake Error at src/bindings/swig/python/CMakeLists.txt:61 (set_target_properties):
  set_target_properties Can not find target to add properties to:
  _swig-python


CMake Error at src/bindings/swig/python/CMakeLists.txt:79 (install):
  install TARGETS given target "_swig-python" which does not exist.

System Information

  • Elektra Version: master
  • macOS 10.15.1
  • CMake 3.15.5
@markus2330

This comment has been minimized.

Copy link
Contributor

@markus2330 markus2330 commented Dec 10, 2019

Thank you for reporting this problem!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.