From 5088ee99e6180ae36f4075ca94db00b5cf3b10f3 Mon Sep 17 00:00:00 2001 From: Jon Trulson Date: Tue, 13 Sep 2016 11:22:00 -0600 Subject: [PATCH] examples/c/CMakeLists.txt: make sure C examples link only with C libs Previously, C examples were being linked with the C++ libs. This worked, since currently (until ds18b20) all C++ libraries with C components simply wrapped the C componenets. Now we make sure that only the C libs are ever linked with the C examples. Signed-off-by: Jon Trulson --- examples/c/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/c/CMakeLists.txt b/examples/c/CMakeLists.txt index eb46e18e..a7218844 100644 --- a/examples/c/CMakeLists.txt +++ b/examples/c/CMakeLists.txt @@ -23,7 +23,7 @@ macro(add_custom_example example_bin example_src example_module_list) set(found_all_modules FALSE) endif() if (MODULE_LIST) - list(FIND MODULE_LIST ${module} index) + list(FIND MODULE_LIST ${module}-c index) if (${index} EQUAL -1) set(found_all_modules FALSE) endif()