From 3980f36db0184e0855ff5673496c6b63311c23cf Mon Sep 17 00:00:00 2001 From: Weng Xuetian Date: Sat, 11 Mar 2017 10:09:30 -0800 Subject: Fix ecm_generate_pkgconfig_file compatibility with new cmake Summary: CMP0053 specifies that: - Expansion of ``@VAR@`` reference syntax defined by the ``configure_file()`` and ``string(CONFIGURE)`` commands is no longer performed in other contexts. replace it with the $ variable syntax. Test Plan: manual Reviewers: #frameworks, dfaure Reviewed By: dfaure Subscribers: #build_system Tags: #frameworks, #build_system Differential Revision: https://phabricator.kde.org/D5017 --- modules/ECMGeneratePkgConfigFile.cmake | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'modules/ECMGeneratePkgConfigFile.cmake') diff --git a/modules/ECMGeneratePkgConfigFile.cmake b/modules/ECMGeneratePkgConfigFile.cmake index 9e3a725e..66c57cd9 100644 --- a/modules/ECMGeneratePkgConfigFile.cmake +++ b/modules/ECMGeneratePkgConfigFile.cmake @@ -160,11 +160,11 @@ function(ECM_GENERATE_PKGCONFIG_FILE) file(WRITE ${PKGCONFIG_FILENAME} " -Name: @PKGCONFIG_TARGET_LIBNAME@ -Version: @PROJECT_VERSION@ -Libs: -L@CMAKE_INSTALL_PREFIX@/@EGPF_LIB_INSTALL_DIR@ -l@PKGCONFIG_TARGET_LIBNAME@ -Cflags: @PKGCONFIG_TARGET_INCLUDES@ @PKGCONFIG_TARGET_DEFINES@ -Requires: @PKGCONFIG_TARGET_DEPS@ +Name: ${PKGCONFIG_TARGET_LIBNAME} +Version: ${PROJECT_VERSION} +Libs: -L${CMAKE_INSTALL_PREFIX}/${EGPF_LIB_INSTALL_DIR} -l${PKGCONFIG_TARGET_LIBNAME} +Cflags: ${PKGCONFIG_TARGET_INCLUDES} ${PKGCONFIG_TARGET_DEFINES} +Requires: ${PKGCONFIG_TARGET_DEPS} " ) -- cgit v1.2.1