mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-06-19 06:08:24 +02:00
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>
This commit is contained in:
parent
1f1702c442
commit
b59ff3d223
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue