Skip to content

Commit 0038a55

Browse files
committed
CMake: Add include guards when IMPORT_BBA_FILES is used
1 parent 1623243 commit 0038a55

File tree

6 files changed

+19
-6
lines changed

6 files changed

+19
-6
lines changed

ecp5/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
include(FindTrellis)
1+
if (NOT IMPORT_BBA_FILES)
2+
include(FindTrellis)
3+
endif()
24

35
set(SOURCES
46
arch.cc

gowin/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
include(FindApycula)
1+
if (NOT IMPORT_BBA_FILES)
2+
include(FindApycula)
3+
endif()
24

35
set(SOURCES
46
arch.cc

himbaechel/uarch/gowin/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
include(FindApycula)
1+
if (NOT IMPORT_BBA_FILES)
2+
include(FindApycula)
3+
endif()
24

35
set(SOURCES
46
constids.inc

ice40/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
include(FindIceStorm)
1+
if (NOT IMPORT_BBA_FILES)
2+
include(FindIceStorm)
3+
endif()
24

35
set(SOURCES
46
arch.cc

machxo2/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
include(FindTrellis)
1+
if (NOT IMPORT_BBA_FILES)
2+
include(FindTrellis)
3+
endif()
24

35
set(SOURCES
46
arch.cc
@@ -36,6 +38,7 @@ message(STATUS "Enabled MachXO2/XO3 devices: ${MACHXO2_DEVICES}")
3638
configure_file(machxo2_available.h.in ${CMAKE_CURRENT_BINARY_DIR}/machxo2_available.h)
3739
target_sources(nextpnr-${family}-core PUBLIC ${CMAKE_CURRENT_BINARY_DIR}/machxo2_available.h)
3840
target_include_directories(nextpnr-${family}-core INTERFACE ${CMAKE_CURRENT_BINARY_DIR})
41+
target_include_directories(nextpnr-${family}-gui PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
3942

4043
foreach (device ${MACHXO2_DEVICES})
4144
if (NOT device IN_LIST ALL_MACHXO2_DEVICES)

nexus/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
include(FindOxide)
1+
if (NOT IMPORT_BBA_FILES)
2+
include(FindOxide)
3+
endif()
24

35
set(SOURCES
46
arch.cc

0 commit comments

Comments
 (0)