CMake: used link_libraries() instead of target_link_libraries()

This commit is contained in:
Benoit Blanchon
2020-05-03 10:25:38 +02:00
parent 3b923b6e4e
commit dcf7eeef28
17 changed files with 4 additions and 84 deletions

View File

@ -15,11 +15,6 @@ add_executable(MiscTests
version.cpp
)
target_link_libraries(MiscTests
ArduinoJson
catch
)
set_target_properties(MiscTests PROPERTIES UNITY_BUILD OFF)
add_test(Misc MiscTests)
@ -39,11 +34,9 @@ macro(build_should_fail target)
${CMAKE_BINARY_DIR}
)
set_tests_properties(${target}
PROPERTIES
WILL_FAIL TRUE)
WILL_FAIL TRUE
)
endmacro()