diff --git a/openfpga/CMakeLists.txt b/openfpga/CMakeLists.txt index 4ef8796bf..cbe4e2707 100644 --- a/openfpga/CMakeLists.txt +++ b/openfpga/CMakeLists.txt @@ -12,12 +12,12 @@ list(REMOVE_ITEM LIB_SOURCES ${EXEC_SOURCE}) if (OPENFPGA_WITH_SWIG) # SWIG library - SwigLib(NAME libopenfpga_swig + SwigLib(NAME openfpga_shell NAMESPACE std LANGUAGE tcl - I_FILE src/openfpga.i) - target_include_directories(libopenfpga_swig PUBLIC ${LIB_INCLUDE_DIRS}) - target_link_libraries(libopenfpga_swig + I_FILE src/openfpga_shell.i) + target_include_directories(openfpga_shell PUBLIC ${LIB_INCLUDE_DIRS}) + target_link_libraries(openfpga_shell libopenfpga) endif() diff --git a/openfpga/src/openfpga.i b/openfpga/src/openfpga_shell.i similarity index 83% rename from openfpga/src/openfpga.i rename to openfpga/src/openfpga_shell.i index 8c002000d..1d53fe704 100644 --- a/openfpga/src/openfpga.i +++ b/openfpga/src/openfpga_shell.i @@ -1,5 +1,5 @@ /* SWIG interface file for OpenFPGA shell APIs */ -%module openfpga +%module openfpga_shell %{ #include "openfpga_shell.h"