File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,6 +10,13 @@ EXTRA_PROGRAMS = CppUTestExtTests
1010lib_LIBRARIES = lib/libCppUTest.a
1111check_PROGRAMS = $(CPPUTEST_TESTS )
1212
13+ # HACK: Replace the HAVE_CONFIG_H macro with CPPUTEST_HAVE_GENERATED_CONFIG_H.
14+ # The name HAVE_CONFIG_H is a hard-coded in autoconf and cannot be changed in
15+ # any "normal" ways. This isn't typically a problem, but CppUTest exposes the
16+ # macro in its public headers. This leads to collisions with any other projects
17+ # built with autoconf.
18+ DEFS = $(filter-out -DHAVE_CONFIG_H,@DEFS@) -DCPPUTEST_HAVE_GENERATED_CONFIG_H
19+
1320if INCLUDE_CPPUTEST_EXT
1421lib_LIBRARIES+ = lib/libCppUTestExt.a
1522check_PROGRAMS += $(CPPUTESTEXT_TESTS )
Original file line number Diff line number Diff line change 4141 *
4242 */
4343
44- #ifdef HAVE_CONFIG_H
44+ #ifdef CPPUTEST_HAVE_GENERATED_CONFIG_H
4545#include "generated/CppUTestGeneratedConfig.h"
4646#endif
4747
You can’t perform that action at this time.
0 commit comments