From e4a6978b57abdaf174e57acb90442d0062f5f970 Mon Sep 17 00:00:00 2001 From: jakeg00dwin Date: Wed, 20 Mar 2024 16:10:10 -0700 Subject: [PATCH] fixed issue with external linkage of "C" files --- .template_files/modules/TestCMakeLists.txt | 5 ----- .template_files/modules/test_module_name.cpp | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/.template_files/modules/TestCMakeLists.txt b/.template_files/modules/TestCMakeLists.txt index c8df144..64f9179 100644 --- a/.template_files/modules/TestCMakeLists.txt +++ b/.template_files/modules/TestCMakeLists.txt @@ -8,8 +8,3 @@ target_link_libraries(test_module_name ${CPPUTEST_LIBRARIES}/libCppUTestExt.a module_name ) - -target_include_directories(test_module_name - module_name -) - diff --git a/.template_files/modules/test_module_name.cpp b/.template_files/modules/test_module_name.cpp index dfe1663..d06f275 100644 --- a/.template_files/modules/test_module_name.cpp +++ b/.template_files/modules/test_module_name.cpp @@ -7,7 +7,7 @@ #include "CppUTest/CommandLineTestRunner.h" -extern C +extern "C" { #include "module_name.h" }