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

Can't compile on Ubuntu 22.04.1 LTS #86

Open
aschmitz-crnc opened this issue Feb 10, 2023 · 1 comment
Open

Can't compile on Ubuntu 22.04.1 LTS #86

aschmitz-crnc opened this issue Feb 10, 2023 · 1 comment

Comments

@aschmitz-crnc
Copy link

When trying to build (simple cmake .) the current master I get this on Ubuntu:

  Target "rct" has policy CMP0022 enabled, but also has old-style           
  LINK_INTERFACE_LIBRARIES properties populated, but it was exported without
  the EXPORT_LINK_INTERFACE_LIBRARIES to export the old-style properties    
@aschmitz-crnc
Copy link
Author

It seems this patch lets me at least compile -- without knowing when this will break. :)

diff --git a/rct.cmake b/rct.cmake
index d1d6ba4..05477df 100644
--- a/rct.cmake
+++ b/rct.cmake
@@ -4,6 +4,10 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
 
 find_package(PkgConfig)
 
+if (POLICY CMP0022)
+  cmake_policy(SET CMP0022 OLD)
+endif ()
+
 if (POLICY CMP0025)
   cmake_policy(SET CMP0025 NEW)
 endif ()

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