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

(cmake branch) code is not compatible with CMake 3.18 #39

Open
wavepacket opened this issue Jun 16, 2023 · 0 comments
Open

(cmake branch) code is not compatible with CMake 3.18 #39

wavepacket opened this issue Jun 16, 2023 · 0 comments

Comments

@wavepacket
Copy link

Again a rather small issue with two possible fixes. I happened to fall into it while trying to compile the tensor library on an older Debian with exactly CMake 3.18.x

In TensorOptions.cmake, there is a generator exprssion like $CONFIG:Release,RelWithDebInfo.
According to the CMake documentation, this expression is only allowed from CMake 3.19 onwards. CMake 3.18 only allows a single configuration to be specified.

There are principally two solutions. None is perfect IMO.

  • You could rewrite this generator expression with an $OR:... and two CONFIG expressions. This is ugly.
  • You could stop pretending about the compatibility and require CMake 3.19.
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