Skip to content

Commit 27049da

Browse files
Jonas Berghefloryd
authored andcommitted
Allow to build for STM32 without BUILD_TESTING
1 parent 59bcea8 commit 27049da

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cmake/STM32Cube.cmake

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,13 @@ install (FILES
7171
DESTINATION include
7272
)
7373

74+
generate_bin(pn_dev)
75+
7476
if (BUILD_TESTING)
7577
target_include_directories(pf_test
7678
PRIVATE
7779
src/ports/STM32Cube
7880
)
7981
target_link_libraries(pf_test PRIVATE cube-bsp)
82+
generate_bin(pf_test)
8083
endif()
81-
82-
generate_bin(pn_dev)
83-
generate_bin(pf_test)

0 commit comments

Comments
 (0)