Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Mar 2017 15:06:23 +0000 (UTC)
From:      Raphael Kubo da Costa <rakuco@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r437049 - head/net/libkvkontakte/files
Message-ID:  <201703271506.v2RF6O3D034317@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rakuco
Date: Mon Mar 27 15:06:23 2017
New Revision: 437049
URL: https://svnweb.freebsd.org/changeset/ports/437049

Log:
  Unbreak after r436971.
  
  kdelibs stopped setting several CMake policies to old values, as well as
  setting an old minium required CMake version.
  
  This causes the configuration stage to fail here, as libkvkontakte sets a
  higher minimum required CMake version that sets the CMP0022 policy to NEW and
  causes things to fail:
  
  CMake Error in libkvkontakte/CMakeLists.txt:
    Target "kvkontakte" 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

Added:
  head/net/libkvkontakte/files/
  head/net/libkvkontakte/files/patch-CMakeLists.txt   (contents, props changed)

Added: head/net/libkvkontakte/files/patch-CMakeLists.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/libkvkontakte/files/patch-CMakeLists.txt	Mon Mar 27 15:06:23 2017	(r437049)
@@ -0,0 +1,21 @@
+Avoids the following error when configuring:
+
+CMake Error in libkvkontakte/CMakeLists.txt:
+  Target "kvkontakte" 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
+
+which is caused by the project requiring a minimum CMake version that sets
+CMP0022 to NEW while the code in KDE4Macros.cmake (in kdelibs) still sets the
+deprecated LINK_INTERFACE_LIBRARIES property.
+--- CMakeLists.txt
++++ CMakeLists.txt
+@@ -56,7 +56,7 @@ add_subdirectory(libkvkontakte)
+ # This file contains add_library(bar IMPORTED) statements for each target in the export set, so
+ # when loaded later on cmake will create "imported" library targets from these, which can be used
+ # in many ways in the same way as a normal library target created via a normal add_library().
+-install(EXPORT LibKVkontakteExport DESTINATION ${CMAKECONFIG_INSTALL_DIR} FILE LibKVkontakteTargets.cmake )
++install(EXPORT LibKVkontakteExport DESTINATION ${CMAKECONFIG_INSTALL_DIR} FILE LibKVkontakteTargets.cmake EXPORT_LINK_INTERFACE_LIBRARIES )
+ 
+ # figure out the relative path from the installed Config.cmake file to the install prefix (which may be at
+ # runtime different from the chosen CMAKE_INSTALL_PREFIX if under Windows the package was installed anywhere)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201703271506.v2RF6O3D034317>