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()