Skip to content

Commit

Permalink
Source/CMakeLists.txt: handle undefined simulator
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippvK committed Aug 5, 2024
1 parent cdce10a commit e194df1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Source/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,11 @@ target_include_directories(${MURISCVNN_LIB} PUBLIC
${CMAKE_SOURCE_DIR}/Include
${CMAKE_SOURCE_DIR}/Include/CMSIS/NN/Include)

# TODO(fabianpedd): We currently need to include the Vicuna headers in order to redirect printf
if(${SIMULATOR} STREQUAL "Vicuna")
target_include_directories(${MURISCVNN_LIB} PUBLIC ${CMAKE_SOURCE_DIR}/Sim/Vicuna)
if(SIMULATOR)
# TODO(fabianpedd): We currently need to include the Vicuna headers in order to redirect printf
if(${SIMULATOR} STREQUAL "Vicuna")
target_include_directories(${MURISCVNN_LIB} PUBLIC ${CMAKE_SOURCE_DIR}/Sim/Vicuna)
endif()
endif()

if(BASICMATHSNN)
Expand Down

0 comments on commit e194df1

Please sign in to comment.