Skip to content

Commit 983b59f

Browse files
committed
Tighten error conditions in build.
Signed-off-by: Ryan Pavlik <[email protected]>
1 parent 5b921c3 commit 983b59f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cmake/presentation.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ message(STATUS "Using presentation backend: ${PRESENTATION_BACKEND}")
1515

1616
if( PRESENTATION_BACKEND MATCHES "xlib" )
1717
find_package(X11 REQUIRED)
18-
if ((NOT X11_Xxf86vm_LIB) OR (NOT X11_Xrandr_LIB))
19-
message(FATAL_ERROR "OpenXR xlib backend requires Xxf86vm and Xrandr")
18+
if (BUILD_TESTS AND ((NOT X11_Xxf86vm_LIB) OR (NOT X11_Xrandr_LIB)))
19+
message(FATAL_ERROR "OpenXR tests using xlib backend requires Xxf86vm and Xrandr")
2020
endif()
2121

2222
add_definitions( -DSUPPORT_X )

0 commit comments

Comments
 (0)