Do not build the firmware target when crosscompiling
parent
5018c44489
commit
332c740a8b
|
|
@ -165,6 +165,9 @@ target_compile_options(firmware PRIVATE -Wdouble-promotion)
|
||||||
add_subdirectory(src)
|
add_subdirectory(src)
|
||||||
|
|
||||||
if(NOT CMAKE_CROSSCOMPILING)
|
if(NOT CMAKE_CROSSCOMPILING)
|
||||||
|
# do not build the firmware by default (tests are the focus if not crosscompiling)
|
||||||
|
set_target_properties(firmware PROPERTIES EXCLUDE_FROM_ALL YES)
|
||||||
|
|
||||||
enable_testing()
|
enable_testing()
|
||||||
add_subdirectory(tests)
|
add_subdirectory(tests)
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue