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,25 +1,25 @@
|
|||
# Copyright (c) 2023 Intel Corporation
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
set(ACPI_DIR ${ZEPHYR_CURRENT_MODULE_DIR}/)
|
||||
set(INC_DIR ${ACPI_DIR}/source/include/)
|
||||
set(SRC_DIR ${ACPI_DIR}/source)
|
||||
set(COMP_DIR ${ACPI_DIR}/source/components)
|
||||
set(PARENT_SRC_DIR ${ACPI_DIR}../../zephyr)
|
||||
set(ACPI_PARENT_DIR ${ACPI_DIR}/../)
|
||||
|
||||
zephyr_include_directories(
|
||||
${PARENT_SRC_DIR}/include/
|
||||
${ACPI_PARENT_DIR}/
|
||||
${INC_DIR}/
|
||||
${INC_DIR}/platform/
|
||||
${SRC_DIR}/compiler/
|
||||
${ZEPHYR_CURRENT_MODULE_DIR}/generate/zephyr/
|
||||
${SRC_DIR}/tools/acpiexec/
|
||||
${SRC_DIR}/tools/acpidump/
|
||||
)
|
||||
|
||||
if (CONFIG_ACPI)
|
||||
set(ACPI_DIR ${ZEPHYR_CURRENT_MODULE_DIR}/)
|
||||
set(INC_DIR ${ACPI_DIR}/source/include/)
|
||||
set(SRC_DIR ${ACPI_DIR}/source)
|
||||
set(COMP_DIR ${ACPI_DIR}/source/components)
|
||||
set(PARENT_SRC_DIR ${ACPI_DIR}../../zephyr)
|
||||
set(ACPI_PARENT_DIR ${ACPI_DIR}/../)
|
||||
|
||||
zephyr_include_directories(
|
||||
${PARENT_SRC_DIR}/include/
|
||||
${ACPI_PARENT_DIR}/
|
||||
${INC_DIR}/
|
||||
${INC_DIR}/platform/
|
||||
${SRC_DIR}/compiler/
|
||||
${ZEPHYR_CURRENT_MODULE_DIR}/generate/zephyr/
|
||||
${SRC_DIR}/tools/acpiexec/
|
||||
${SRC_DIR}/tools/acpidump/
|
||||
)
|
||||
|
||||
zephyr_library()
|
||||
|
||||
add_compile_definitions(__ZEPHYR__)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue