execute_process( COMMAND "@HTML_HELP_COMPILER@" xtrkcad.hhp RESULT_VARIABLE results ERROR_VARIABLE error ) if(NOT "${results}" STREQUAL "1") message(FATAL_ERROR "Creating chm failed! ${error}") endif()