diff options
author | Ralf Habacker <ralf.habacker@freenet.de> | 2017-10-17 17:14:43 +0200 |
---|---|---|
committer | Ralf Habacker <ralf.habacker@freenet.de> | 2017-10-18 19:20:02 +0200 |
commit | b59ff3d2235910d378d9aaf614fcfa9ede7f079e (patch) | |
tree | 4f299a9500ef5df3791ed374fc0c20417802b004 /cmake | |
parent | 1f1702c442c9d5d8cd20dd4c1b5fde1a3d67fbda (diff) | |
download | dbus-b59ff3d2235910d378d9aaf614fcfa9ede7f079e.tar.gz dbus-b59ff3d2235910d378d9aaf614fcfa9ede7f079e.tar.bz2 dbus-b59ff3d2235910d378d9aaf614fcfa9ede7f079e.zip |
Fix cmake 3.5 configure error on opening a non existant file
Previous cmake versions seemed to be more tolerant.
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=103015
Signed-off-by: Ralf Habacker <ralf.habacker@freenet.de>
Reviewed-by: Simon McVittie <smcv@collabora.com>
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/modules/Macros.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/modules/Macros.cmake b/cmake/modules/Macros.cmake index 186c0b09..63b2171b 100644 --- a/cmake/modules/Macros.cmake +++ b/cmake/modules/Macros.cmake @@ -10,7 +10,7 @@ if(DBUS_BUILD_TESTS AND CMAKE_CROSSCOMPILING AND CMAKE_SYSTEM_NAME STREQUAL "Win PATHS /proc/sys/fs/binfmt_misc NO_SYSTEM_PATH NO_CMAKE_FIND_ROOT_PATH ) - if(BINFMT_WINE_SUPPORT_FILE) + if(EXISTS BINFMT_WINE_SUPPORT_FILE) file(READ ${BINFMT_WINE_SUPPORT_FILE} CONTENT) if(${CONTENT} MATCHES "enabled") set(HAVE_BINFMT_WINE_SUPPORT 1) |