The CMake policy CMP0144 generates an error with the latest CMake version (3.30.4). #17
No reviewers
Labels
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Reference: blender/cycles#17
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "Pierre-Pontier/cycles:fix/cmake_policy_cmp0144_is_not_know"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I'm trying to compile the latest version of Cycles. I get this error.
CMake: v3.30.4 (the latest version)
Cycles: v4.2.0
CMake Error at CMakeLists.txt:39 (cmake_policy):
Policy "CMP0144" is not known to this version of CMake.
https://cmake.org/cmake/help/latest/policy/CMP0144.html
Deleting line 39 "cmake_policy(SET CMP0144 NEW)" from the CMakeLists.txt file allows Cycles to be compiled with the latest version of CMake.
@ -37,4 +37,3 @@
# Use ROOT variables in find_package.
cmake_policy(SET CMP0074 NEW)
cmake_policy(SET CMP0144 NEW)
Can you do instead do this? That way older CMake versions still use the new behavior as we want.
In fact we should do this if/endif for all
cmake_policy
lines, for future proofing.Thanks!