aboutsummaryrefslogtreecommitdiff
path: root/libs/acpi/cmake/Scripts/IaslCompile.cmake
blob: ff73b340a837083ff5009a5439421d4afb69d570 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
execute_process(
    COMMAND
    "${IASL_EXE}"
    "-vs"
    "-p"
    "${IASL_OUTPUT}"
    "${IASL_INPUT}"
    OUTPUT_VARIABLE IASL_OUT
    ERROR_VARIABLE IASL_ERR
    RESULT_VARIABLE IASL_RES
)

if(NOT IASL_RES EQUAL 0)
  message(STATUS "${IASL_OUT}")
  message(FATAL_ERROR "${IASL_ERR}")
endif()