modules/acpica: CMakeLists.txt: move conditional to beginning of file
Move the conditional compile of CONFIG_ACPI to the beginning of the file as we currently add compiler include paths to all projects even if CONFIG_ACPI is not set. Signed-off-by: Florian La Roche <Florian.LaRoche@gmail.com>
This commit is contained in:
parent
6d67a56d5b
commit
79d0bf39b8
1 changed files with 18 additions and 18 deletions
|
@ -1,14 +1,15 @@
|
||||||
# Copyright (c) 2023 Intel Corporation
|
# Copyright (c) 2023 Intel Corporation
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
set(ACPI_DIR ${ZEPHYR_CURRENT_MODULE_DIR}/)
|
if (CONFIG_ACPI)
|
||||||
set(INC_DIR ${ACPI_DIR}/source/include/)
|
set(ACPI_DIR ${ZEPHYR_CURRENT_MODULE_DIR}/)
|
||||||
set(SRC_DIR ${ACPI_DIR}/source)
|
set(INC_DIR ${ACPI_DIR}/source/include/)
|
||||||
set(COMP_DIR ${ACPI_DIR}/source/components)
|
set(SRC_DIR ${ACPI_DIR}/source)
|
||||||
set(PARENT_SRC_DIR ${ACPI_DIR}../../zephyr)
|
set(COMP_DIR ${ACPI_DIR}/source/components)
|
||||||
set(ACPI_PARENT_DIR ${ACPI_DIR}/../)
|
set(PARENT_SRC_DIR ${ACPI_DIR}../../zephyr)
|
||||||
|
set(ACPI_PARENT_DIR ${ACPI_DIR}/../)
|
||||||
|
|
||||||
zephyr_include_directories(
|
zephyr_include_directories(
|
||||||
${PARENT_SRC_DIR}/include/
|
${PARENT_SRC_DIR}/include/
|
||||||
${ACPI_PARENT_DIR}/
|
${ACPI_PARENT_DIR}/
|
||||||
${INC_DIR}/
|
${INC_DIR}/
|
||||||
|
@ -17,9 +18,8 @@ zephyr_include_directories(
|
||||||
${ZEPHYR_CURRENT_MODULE_DIR}/generate/zephyr/
|
${ZEPHYR_CURRENT_MODULE_DIR}/generate/zephyr/
|
||||||
${SRC_DIR}/tools/acpiexec/
|
${SRC_DIR}/tools/acpiexec/
|
||||||
${SRC_DIR}/tools/acpidump/
|
${SRC_DIR}/tools/acpidump/
|
||||||
)
|
)
|
||||||
|
|
||||||
if (CONFIG_ACPI)
|
|
||||||
zephyr_library()
|
zephyr_library()
|
||||||
|
|
||||||
add_compile_definitions(__ZEPHYR__)
|
add_compile_definitions(__ZEPHYR__)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue