Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMake: exclude *-bba and *-chipdb targets from make all #1444

Merged
merged 1 commit into from
Jan 29, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ add_subdirectory(rust)

add_subdirectory(tests/gui)

add_custom_target(nextpnr-all-bba)
add_custom_target(nextpnr-all-bba EXCLUDE_FROM_ALL)

function(add_nextpnr_architecture target)
cmake_parse_arguments(arg "" "MAIN_SOURCE" "CORE_SOURCES;TEST_SOURCES;CURRENT_SOURCE_DIR;CURRENT_BINARY_DIR" ${ARGN})
Expand Down Expand Up @@ -331,11 +331,11 @@ function(add_nextpnr_architecture target)

# Chip database

add_library(nextpnr-${target}-bba INTERFACE)
add_library(nextpnr-${target}-bba INTERFACE EXCLUDE_FROM_ALL)

add_dependencies(nextpnr-all-bba nextpnr-${target}-bba)

add_library(nextpnr-${target}-chipdb INTERFACE)
add_library(nextpnr-${target}-chipdb INTERFACE EXCLUDE_FROM_ALL)

target_link_libraries(nextpnr-${target}-core INTERFACE nextpnr-${target}-chipdb)

Expand Down
4 changes: 2 additions & 2 deletions himbaechel/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ else()

target_sources(nextpnr-himbaechel-core INTERFACE ${arg_CORE_SOURCES})

add_library(nextpnr-himbaechel-${microtarget}-bba INTERFACE)
add_library(nextpnr-himbaechel-${microtarget}-bba INTERFACE EXCLUDE_FROM_ALL)

add_dependencies(nextpnr-himbaechel-bba nextpnr-himbaechel-${microtarget}-bba)

add_library(nextpnr-himbaechel-${microtarget}-chipdb INTERFACE)
add_library(nextpnr-himbaechel-${microtarget}-chipdb INTERFACE EXCLUDE_FROM_ALL)

target_link_libraries(nextpnr-himbaechel-core INTERFACE nextpnr-himbaechel-${microtarget}-chipdb)

Expand Down