diff --git a/samples/wasm-c-api/CMakeLists.txt b/samples/wasm-c-api/CMakeLists.txt index b8783f4ae6..19c601889f 100644 --- a/samples/wasm-c-api/CMakeLists.txt +++ b/samples/wasm-c-api/CMakeLists.txt @@ -129,7 +129,7 @@ if (${WAT2WASM_VERSION} VERSION_LESS 1.0.26) set(WAT2WASM_FLAGS "--enable-reference-types") endif () -if(${WAMR_BUILD_AOT} EQUAL 1) +if(${WAMR_BUILD_AOT} EQUAL 1 AND ${WAMR_BUILD_INTERP} EQUAL 0) ## locate wamrc find_program(WAMRC wamrc