diff --git a/llvm/examples/HowToUseJIT/CMakeLists.txt b/llvm/examples/HowToUseJIT/CMakeLists.txt
index ad7da9576974..428b53ffb9be 100644
--- a/llvm/examples/HowToUseJIT/CMakeLists.txt
+++ b/llvm/examples/HowToUseJIT/CMakeLists.txt
@@ -1,5 +1,5 @@
 set(LLVM_LINK_COMPONENTS jit interpreter nativecodegen)
 
-add_llvm_executable(HowToUseJIT
+add_llvm_example(HowToUseJIT
   HowToUseJIT.cpp
   )