mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-01-06 17:40:16 +01:00
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>
This commit is contained in:
parent
924bff39e6
commit
d46f7bac0d
2 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
||||
#
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue