Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Dec 2014 20:39:21 +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: r375855 - head/polish/kadu/files
Message-ID:  <201412302039.sBUKdL6E044630@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rakuco
Date: Tue Dec 30 20:39:20 2014
New Revision: 375855
URL: https://svnweb.freebsd.org/changeset/ports/375855
QAT: https://qat.redports.org/buildarchive/r375855/

Log:
  Add a patch (submitted upstream) to make the port build with CMake 3.1.0.
  
  Use the proper syntax for configure_package_config_file(). Verified to also
  work with CMake 3.0.2.

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

Added: head/polish/kadu/files/patch-CMakeLists.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/polish/kadu/files/patch-CMakeLists.txt	Tue Dec 30 20:39:20 2014	(r375855)
@@ -0,0 +1,29 @@
+Submitted upstream: https://gitorious.org/kadu/kadu/merge_requests/2121
+
+Make the call to configure_package_config_file work with CMake 3.1.0.
+
+configure_package_config_file()'s PATH_VARS option expects several
+separate variable names instead of one list with all the names. Passing
+the values in the expected format fixes the following error:
+
+CMake Error at /usr/local/share/cmake/Modules/CMakePackageConfigHelpers.cmake:231 (message):
+  Unknown keywords given to CONFIGURE_PACKAGE_CONFIG_FILE():
+  "INCLUDE_DIR;SDK_DIR"
+Call Stack (most recent call first):
+  CMakeLists.txt:226 (configure_package_config_file)
+  CMakeLists.txt:279 (kadu_configure_package_config_file)
+--- CMakeLists.txt
++++ CMakeLists.txt
+@@ -221,11 +221,10 @@
+ 	elseif ("${_mode}" STREQUAL INSTALL_TREE)
+ 		set (INCLUDE_DIR "${INSTALL_INCLUDE_DIR}")
+ 		set (SDK_DIR "${INSTALL_SDK_DIR}")
+-		list (APPEND path_vars INCLUDE_DIR SDK_DIR)
+ 
+ 		configure_package_config_file ("${_in}" "${_out}"
+ 			INSTALL_DESTINATION "${INSTALL_CMAKE_DIR}"
+-			PATH_VARS ${path_vars}
++			PATH_VARS INCLUDE_DIR SDK_DIR
+ 			NO_SET_AND_CHECK_MACRO NO_CHECK_REQUIRED_COMPONENTS_MACRO
+ 		)
+ 	endif ()



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