diff --git a/Makefile.am b/Makefile.am index c2c0bb60..2699f2dd 100644 --- a/Makefile.am +++ b/Makefile.am @@ -429,7 +429,7 @@ test_apps = \ tests/test_reconnect_ivl \ tests/test_socket_null -UNITY_CPPFLAGS = -I$(top_srcdir)/external/unity +UNITY_CPPFLAGS = -I$(top_srcdir)/external/unity -DUNITY_USE_COMMAND_LINE_ARGS -DUNITY_EXCLUDE_FLOAT UNITY_LIBS = $(top_builddir)/external/unity/libunity.a noinst_LIBRARIES = external/unity/libunity.a external_unity_libunity_a_SOURCES = external/unity/unity.c \ diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index a2e48ffd..cfb4423d 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -153,6 +153,7 @@ add_library (unity "${CMAKE_CURRENT_LIST_DIR}/../external/unity/unity_internals.h") set_target_properties (unity PROPERTIES PUBLIC_HEADER "${CMAKE_CURRENT_LIST_DIR}/../external/unity/unity.h") +target_compile_definitions (unity PUBLIC "UNITY_USE_COMMAND_LINE_ARGS" "UNITY_EXCLUDE_FLOAT") target_include_directories (unity PUBLIC "${CMAKE_CURRENT_LIST_DIR}/../external/unity")