Skip to content

Commit

Permalink
Allow to build for STM32 without BUILD_TESTING
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas Berg authored and hefloryd committed Dec 20, 2021
1 parent 59bcea8 commit 27049da
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmake/STM32Cube.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,13 @@ install (FILES
DESTINATION include
)

generate_bin(pn_dev)

if (BUILD_TESTING)
target_include_directories(pf_test
PRIVATE
src/ports/STM32Cube
)
target_link_libraries(pf_test PRIVATE cube-bsp)
generate_bin(pf_test)
endif()

generate_bin(pn_dev)
generate_bin(pf_test)

0 comments on commit 27049da

Please sign in to comment.