mistral: Include mistral generated files in include dirs
Signed-off-by: gatecat <gatecat@ds0.me>
This commit is contained in:
parent
e7db15d6a4
commit
f7be385230
2
.github/workflows/mistral_ci.yml
vendored
2
.github/workflows/mistral_ci.yml
vendored
@ -21,7 +21,7 @@ jobs:
|
|||||||
- name: Execute build nextpnr
|
- name: Execute build nextpnr
|
||||||
env:
|
env:
|
||||||
MISTRAL_PATH: ${{ github.workspace }}/deps/mistral
|
MISTRAL_PATH: ${{ github.workspace }}/deps/mistral
|
||||||
MISTRAL_REVISION: f22b32366d5fed997130712002c8f8de40eb42fc
|
MISTRAL_REVISION: b5bd534444364688a57e4c0f99af1bb4037a495a
|
||||||
run: |
|
run: |
|
||||||
source ./.github/ci/build_mistral.sh
|
source ./.github/ci/build_mistral.sh
|
||||||
get_dependencies
|
get_dependencies
|
||||||
|
@ -1 +1 @@
|
|||||||
target_include_directories(gui_mistral PRIVATE ${MISTRAL_ROOT}/libmistral)
|
target_include_directories(gui_mistral PRIVATE ${MISTRAL_ROOT}/libmistral ${CMAKE_BINARY_DIR}/libmistral)
|
||||||
|
@ -6,7 +6,7 @@ add_subdirectory(${MISTRAL_ROOT}/libmistral ${CMAKE_CURRENT_BINARY_DIR}/libmistr
|
|||||||
find_package(LibLZMA REQUIRED)
|
find_package(LibLZMA REQUIRED)
|
||||||
|
|
||||||
foreach(family_target ${family_targets})
|
foreach(family_target ${family_targets})
|
||||||
target_include_directories(${family_target} PRIVATE ${MISTRAL_ROOT}/libmistral ${LIBLZMA_INCLUDE_DIRS})
|
target_include_directories(${family_target} PRIVATE ${MISTRAL_ROOT}/libmistral ${CMAKE_CURRENT_BINARY_DIR}/libmistral ${LIBLZMA_INCLUDE_DIRS})
|
||||||
target_link_libraries(${family_target} PRIVATE mistral ${LIBLZMA_LIBRARIES})
|
target_link_libraries(${family_target} PRIVATE mistral ${LIBLZMA_LIBRARIES})
|
||||||
# Currently required to avoid issues with mistral (LTO means the warnings can end up in nextpnr)
|
# Currently required to avoid issues with mistral (LTO means the warnings can end up in nextpnr)
|
||||||
target_link_options(${family_target} PRIVATE -Wno-maybe-uninitialized -Wno-uninitialized -Wno-unknown-warning-option)
|
target_link_options(${family_target} PRIVATE -Wno-maybe-uninitialized -Wno-uninitialized -Wno-unknown-warning-option)
|
||||||
|
Loading…
Reference in New Issue
Block a user