Skip to content

Commit

Permalink
BUILD: Make sure to clear DISPLAY when running xpce steps
Browse files Browse the repository at this point in the history
While the build works without a DISPLAY variable, an invalid variable
causes the build to fail.
  • Loading branch information
JanWielemaker committed Oct 23, 2024
1 parent e0dcf53 commit bc14fa1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmake/QLF.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ function(add_swipl_target name)
add_custom_command(
OUTPUT ${my_OUTPUT}
BYPRODUCTS ${my_BYPRODUCTS}
COMMAND ${PROG_SWIPL} ${options} ${my_OPTIONS}
COMMAND ${CMAKE_COMMAND} -E env --unset=DISPLAY
${PROG_SWIPL} ${options} ${my_OPTIONS}
COMMENT "${my_COMMENT}"
DEPENDS core prolog_home
${SWIPL_COMMAND_DEPENDS} "${my_DEPENDS}"
Expand Down

0 comments on commit bc14fa1

Please sign in to comment.