summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorRalf Habacker <ralf.habacker@freenet.de>2015-03-05 23:57:50 +0100
committerRalf Habacker <ralf.habacker@freenet.de>2015-03-06 20:35:59 +0100
commitd46f7bac0dc3cb8ac38cd6a655f9d75cb89aef22 (patch)
treeba3a8eb7a359854860146660284231dc1896c734 /cmake
parent924bff39e6890ec7a50575e5c8318ea1867f8a4e (diff)
downloaddbus-d46f7bac0dc3cb8ac38cd6a655f9d75cb89aef22.tar.gz
cmake: @VAR@ substitutions in set() are deprecated, use string(CONFIGURE) instead (policy CMP0053)
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=89450 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/CMakeLists.txt1
-rw-r--r--cmake/modules/MacrosAutotools.cmake4
2 files changed, 3 insertions, 2 deletions
diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt
index 582d05b2..6fbfb40d 100644
--- a/cmake/CMakeLists.txt
+++ b/cmake/CMakeLists.txt
@@ -14,6 +14,7 @@ endif(COMMAND cmake_policy)
if(CMAKE_MAJOR_VERSION GREATER 2)
cmake_policy(SET CMP0026 NEW)
+ cmake_policy(SET CMP0053 NEW)
endif()
# detect version
diff --git a/cmake/modules/MacrosAutotools.cmake b/cmake/modules/MacrosAutotools.cmake
index 89828e05..8bb83cdf 100644
--- a/cmake/modules/MacrosAutotools.cmake
+++ b/cmake/modules/MacrosAutotools.cmake
@@ -76,7 +76,7 @@ macro(autopackage name version url support_url)
set(PACKAGE ${name})
set(VERSION ${DBUS_VERSION_STRING})
- set(AUTOPACKAGE_CONFIG_H_TEMPLATE "/* generated by cmake macro autopackage */\n
+ string(CONFIGURE "/* generated by cmake macro autopackage */\n
/* Define to the address where bug reports for this package should be sent. */
#define PACKAGE_BUGREPORT \"@PACKAGE_BUGREPORT@\"
@@ -98,7 +98,7 @@ macro(autopackage name version url support_url)
/* defined by autotools package */
#define PACKAGE \"@PACKAGE@\"
#define VERSION \"@VERSION@\"
-")
+" AUTOPACKAGE_CONFIG_H_TEMPLATE)
endmacro(autopackage)
#